Optional
options: Partial<RigidBodyOptions>Acceleration expressed in pixels per second squared. Only for Dynamic bodies
Gravity expressed in pixels per second squared. Only for Dynamic bodies
The type of the rigid body to create:
Velocity applied to the x-axis and y-axis expressed in pixels per second. Only for Dynamic bodies
The RigidBody component puts the entity under simulation of the physics engine, where it will interact with other objects that have a RigidBody.
There are three types of bodies:
This type of body consumes less processing resources than the Dynamic.
This is the body type that consumes the least processing resources.
Example
Example
Example