RigidBodyComponent
A Component responsible for defining the properties of the rigid body, including its RigidBodyMode, MassProperties, CollisionDetectionMode, linear and angular damping, gravity influence, and constraints on translation or rotation in specific directions.
Constructors
The default constructor.
Constructs a RigidBodyComponent with the specified MassProperties and RigidBodyMode.
Properties
Controls how fast a dynamic rigid body’s rotational motion approaches the zero rest state. Default value is 0.05.
Controls the collision detection mode used in physics simulation. Default value is CollisionDetectionMode.DISCRETE.
Determines whether the simulated object should be affected by gravitational forces.
A tuple of boolean values that indicates whether the rotation of the rigid body is locked around each of the three axes.
A tuple of boolean values representing whether the rigid body's translation is locked along each of the three axes. The default value is Bool3(false, false, false), meaning that translation is not locked along any axis.
Controls how fast a dynamic rigid body’s translational motion approaches the zero rest state. Default value is 0.02.
The rigid body’s MassProperties, including mass, center of mass, inertia, and orientation of inertia.
Defines what will influence the motion of the object.