The angular damping for the rigid body.
Whether the component is attached to its entity.
The contact offset.
Notifies when the component is detached from the entity.
Whether the component has been initialized.
The IO signals provided by the component.
The collection of joints.
The physics layer for the collider.
Determines which other colliders and sensors this collider interacts with, according to the physics collision layer matrix.
The linear damping for the rigid body.
The mass distribution (center of mass and inertia tensor) for the rigid body in the local-space of the entity.
When set to null (default), the mass distribution is automatically determined from the collision geometry and mass, assuming uniform density. You can use MassDistribution.fromPhysics to get the actual mass distribution when this is the case. It may sometimes be beneficial to increase the inertia tensor in order improve stability. The InertiaTensor.scaleUniform function can be used for this purpose.
The physics material applied to the collider.
The component name.
The rest offset.
The virtual world to which the owning entity belongs.
Protected OptionaladdedAdded function called immediately after the component is attached to an entity.
Adds a joint.
The constraint type.
The local axis for the constraint.
The local position for the constraint.
Optionalbase: EntityThe base entity, to which the other end of the joint is attached.
The joint.
Applies a force to the rigid body's center-of-mass.
The force to be applied.
The (optional) coordinate system for the force vector.
Applies a force to the rigid body acting at the specified point.
The force to be applied.
The point at which the force is applied.
The (optional) coordinate system for the force and point.
Applies a torque to the rigid body's center-of-mass.
The torque vector.
The (optional) coordinate system for the torque vector.
Creates a handle (weak reference) to a trackable object.
The type of object that is to be referenced.
The object that is initially referenced by the handle.
A handle to a trackable object.
Protected OptionalinitializeAsynchronous initialization function called immediately before simulating when the model is initialized.
OptionalpostPost-update function called after physics has been updated.
The timestep (seconds).
Protected OptionalpostAsynchronous post-update function called after physics has been updated.
The timestep (seconds).
Removes the specified joint.
The joint.
True if the joint was removed, false otherwise.
Immediately triggers asynchronous initialization if the component hasn't already been initialized.
Subscribes to a subscribable object.
Subscriptions created through this function are automatically unsubscribed when the component is detached/removed.
The subscribable object for which to subscribe.
The callback function that is triggered when the object's value is updated.
Unsubscribes from a subscribable object.
The object from which to unsubscribe.
The callback function for the subscription.
True if the subscription was canceled, false otherwise.
OptionalupdateUpdate function called every timestep when simulating.
The timestep (seconds).
Protected OptionalupdateAsynchronous update function called every timestep when simulating.
The timestep (seconds).
A core component that provides an entity with 3D physics.