RigidbodyConstraints

csharp
public enum RigidbodyConstraints

Namespace NodeWorld.Flux.

What the physics may not move or turn on a rigidbody (Rigidbody.constraints); combine them with the | operator.

Values

None

csharp
None = 0

No constraint.

FreezePositionX

csharp
FreezePositionX = 2

No move along x.

FreezePositionY

csharp
FreezePositionY = 4

No move along y.

FreezePositionZ

csharp
FreezePositionZ = 8

No move along z.

FreezeRotationX

csharp
FreezeRotationX = 16

No turn around x.

FreezeRotationY

csharp
FreezeRotationY = 32

No turn around y.

FreezeRotationZ

csharp
FreezeRotationZ = 64

No turn around z.

FreezePosition

csharp
FreezePosition = 14

No move at all.

FreezeRotation

csharp
FreezeRotation = 112

No turn at all.

FreezeAll

csharp
FreezeAll = 126

No move and no turn.