csharp
public struct RigidBodyMakes an entity's collider move: under the solver, or under whoever owns it.
No guide page documents this yet — the page shows what the code says about itself.
As a scene component
- Size
- 32 bytes — 372 rows in a 16 KB chunk, alone on the archetype
Remarks
Only meaningful beside a Collider. On its own it does nothing, because there is nothing to simulate — which is the same rule WorldTransform has about LocalTransform, and for the same reason.
Fields and properties (8)
public BodyMotion MotionHow it moves.
public BodyMotionQuality MotionQualityHow carefully its motion is swept.
public float MassIts mass in kilograms, or zero to take the shape's.
public float GravityFactorHow much of the world's gravity applies.
public float LinearDampingHow quickly linear motion bleeds away, per second.
public float AngularDampingHow quickly angular motion bleeds away, per second.
public BodyDegreesOfFreedom DegreesOfFreedomWhich axes it may move and turn about.
public bool AllowSleepingWhether it may fall asleep when it stops moving.
Methods (2)
Used by (6)
- ComponentRegistrationVixen.Physics
- PhysicsSceneVixen.Physics
- PhysicsSceneComponentTestsVixen.Physics.Tests
- PhysicsSceneTestsVixen.Physics.Tests
- PhysicsSyncSystemVixen.Physics
- Vixen_Physics_Ecs_RigidBodySerializerVixen.Physics