> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.ksirigidbody2d.md).

# Interface ksIRigidBody2D

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Interface exposed to player controllers to restrict access to 2D entity physics data.

```csharp
public interface ksIRigidBody2D
```

## Properties

### AngularDrag <a href="#ks_reactor_ksirigidbody2d_angulardrag" id="ks_reactor_ksirigidbody2d_angulardrag"></a>

Angular damping.

```csharp
float AngularDrag { get; }
```

#### Property Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### AngularVelocity <a href="#ks_reactor_ksirigidbody2d_angularvelocity" id="ks_reactor_ksirigidbody2d_angularvelocity"></a>

Angular velocity in degrees per second.

```csharp
float AngularVelocity { get; set; }
```

#### Property Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### CenterOfMass <a href="#ks_reactor_ksirigidbody2d_centerofmass" id="ks_reactor_ksirigidbody2d_centerofmass"></a>

The rigidbody's center of mass in local space.

```csharp
ksVector2 CenterOfMass { get; }
```

#### Property Value

[ksVector2](/reactor/api-reference/ks.reactor/ks.reactor.ksvector2.md)

### Constraints <a href="#ks_reactor_ksirigidbody2d_constraints" id="ks_reactor_ksirigidbody2d_constraints"></a>

Controls which degrees of freedom are allowed for the simulation of this rigidbody.

```csharp
ksRigidBody2DConstraints Constraints { get; }
```

#### Property Value

[ksRigidBody2DConstraints](/reactor/api-reference/ks.reactor/ks.reactor.ksrigidbody2dconstraints.md)

### Drag <a href="#ks_reactor_ksirigidbody2d_drag" id="ks_reactor_ksirigidbody2d_drag"></a>

Damping.

```csharp
float Drag { get; }
```

#### Property Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### IsKinematic <a href="#ks_reactor_ksirigidbody2d_iskinematic" id="ks_reactor_ksirigidbody2d_iskinematic"></a>

If true, the entity will not be effected by gravity or other impulses, but may be moved around by setting translation and rotation from scripts.

```csharp
bool IsKinematic { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### KinematicMovement <a href="#ks_reactor_ksirigidbody2d_kinematicmovement" id="ks_reactor_ksirigidbody2d_kinematicmovement"></a>

Amount of movement that will be applied to a kinematic rigid body entity during the next physics simulation step. After the simulation step this value will be reset to [Zero](/reactor/api-reference/ks.reactor/ks.reactor.ksvector2.md#KS_Reactor_ksVector2_Zero)

```csharp
ksVector2 KinematicMovement { get; set; }
```

#### Property Value

[ksVector2](/reactor/api-reference/ks.reactor/ks.reactor.ksvector2.md)

### KinematicRotation <a href="#ks_reactor_ksirigidbody2d_kinematicrotation" id="ks_reactor_ksirigidbody2d_kinematicrotation"></a>

Amount of rotation in degrees that will be applied to a kinematic rigid body entity during the next physics simulation step. After the simulation step this value will be reset to zero.

```csharp
float KinematicRotation { get; set; }
```

#### Property Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### KinematicRotationRadians <a href="#ks_reactor_ksirigidbody2d_kinematicrotationradians" id="ks_reactor_ksirigidbody2d_kinematicrotationradians"></a>

Amount of rotation in radians that will be applied to a kinematic rigid body entity during the next physics simulation step. After the simulation step this value will be reset to zero.

```csharp
float KinematicRotationRadians { get; set; }
```

#### Property Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### Mass <a href="#ks_reactor_ksirigidbody2d_mass" id="ks_reactor_ksirigidbody2d_mass"></a>

Mass of the rigid body.

```csharp
float Mass { get; }
```

#### Property Value

[float](https://learn.microsoft.com/dotnet/api/system.single)

### UseGravity <a href="#ks_reactor_ksirigidbody2d_usegravity" id="ks_reactor_ksirigidbody2d_usegravity"></a>

If true, the entity will be affected by the scene gravity.

```csharp
bool UseGravity { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Velocity <a href="#ks_reactor_ksirigidbody2d_velocity" id="ks_reactor_ksirigidbody2d_velocity"></a>

Velocity.

```csharp
ksVector2 Velocity { get; set; }
```

#### Property Value

[ksVector2](/reactor/api-reference/ks.reactor/ks.reactor.ksvector2.md)

## Methods

### ClearKinematicMotion() <a href="#ks_reactor_ksirigidbody2d_clearkinematicmotion" id="ks_reactor_ksirigidbody2d_clearkinematicmotion"></a>

Clear the Kinematic movement and rotation values.

```csharp
void ClearKinematicMotion()
```
