> For the complete documentation index, see [llms.txt](https://kree.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kree.gitbook.io/documentation/gameobject-components/rigidbody.md).

# RigidBody

{% hint style="warning" %}
RIgidBody doesn't affect the rotation of the GameObject
{% endhint %}

> Component Author: [Jabo](https://github.com/jabo-bernardo)\
> Release Date: April 11, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new RigidBody()
```

{% endtab %}

{% tab title="Methods" %}

```java
addHorizontalForce(int xForce); // Moves object left and right

setMass(float mass); // Sets the mass of the GameObject
```

{% endtab %}
{% endtabs %}
