> 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.ksirigidbody.md).

# Interface ksIRigidBody

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

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

```csharp
public interface ksIRigidBody
```

## Properties

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

Angular damping.

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

#### Property Value

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

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

Angular velocity. Component values are degrees per second.

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

#### Property Value

[ksVector3](/reactor/api-reference/ks.reactor/ks.reactor.ksvector3.md)

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

The rigidbody's center of mass in local space.

```csharp
ksVector3 CenterOfMass { get; }
```

#### Property Value

[ksVector3](/reactor/api-reference/ks.reactor/ks.reactor.ksvector3.md)

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

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

```csharp
ksRigidBodyConstraints Constraints { get; }
```

#### Property Value

[ksRigidBodyConstraints](/reactor/api-reference/ks.reactor/ks.reactor.ksrigidbodyconstraints.md)

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

Damping.

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

#### Property Value

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

### IsKinematic <a href="#ks_reactor_ksirigidbody_iskinematic" id="ks_reactor_ksirigidbody_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_ksirigidbody_kinematicmovement" id="ks_reactor_ksirigidbody_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.ksvector3.md#KS_Reactor_ksVector3_Zero)

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

#### Property Value

[ksVector3](/reactor/api-reference/ks.reactor/ks.reactor.ksvector3.md)

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

Amount of rotation 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 [Identity](/reactor/api-reference/ks.reactor/ks.reactor.ksquaternion.md#KS_Reactor_ksQuaternion_Identity)

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

#### Property Value

[ksQuaternion](/reactor/api-reference/ks.reactor/ks.reactor.ksquaternion.md)

### Mass <a href="#ks_reactor_ksirigidbody_mass" id="ks_reactor_ksirigidbody_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_ksirigidbody_usegravity" id="ks_reactor_ksirigidbody_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_ksirigidbody_velocity" id="ks_reactor_ksirigidbody_velocity"></a>

Linear velocity

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

#### Property Value

[ksVector3](/reactor/api-reference/ks.reactor/ks.reactor.ksvector3.md)

## Methods

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

Clear the Kinematic movement and rotation values.

```csharp
void ClearKinematicMotion()
```
