Expand description
Common components and bundles for rigid bodies.
Modules§
- Mass property functionality for rigid bodies and colliders.
Structs§
- Translation accumulated during the physics frame.
- Automatically slows down a dynamic rigid body, decreasing its angular velocity each frame. This can be used to simulate air resistance.
- The angular velocity of a rigid body as a rotation axis multiplied by the angular speed in radians per second.
- A resource for the default
Friction
to use for physics objects. - A resource for the default
Restitution
to use for physics objects. - Dominance allows dynamic rigid bodies to dominate each other during physical interactions.
- An external angular impulse applied instantly to a dynamic rigid body.
- An external force applied continuously to a dynamic rigid body.
- An external impulse applied instantly to a dynamic rigid body.
- An external torque applied continuously to a dynamic rigid body.
- A component for dry friction, controlling how strongly a rigid body or collider opposes sliding along other surfaces while in contact.
- Controls how gravity affects a specific rigid body.
- Automatically slows down a dynamic rigid body, decreasing its linear velocity each frame. This can be used to simulate air resistance.
- The linear velocity of a rigid body.
- A component that specifies which translational and rotational axes of a rigid body are locked.
- The maximum angular speed of a rigid body, clamping the
AngularVelocity
. - The maximum linear speed of a rigid body, clamping the
LinearVelocity
. - A marker component that indicates that a rigid body is disabled and should not participate in the simulation. Disables velocity, forces, contact response, and attached joints.
- A
WorldQuery
to make querying and modifying rigid bodies more convenient. - Automatically generated [
WorldQuery
](bevy :: ecs::query::WorldQuery) item type forRigidBodyQuery
, returned when iterating over query results. - Automatically generated [
WorldQuery
](bevy :: ecs::query::WorldQuery) type for a read-only variant ofRigidBodyQuery
. - Automatically generated [
WorldQuery
](bevy :: ecs::query::WorldQuery) item type forRigidBodyQueryReadOnly
, returned when iterating over query results. - Indicates that a rigid body is not simulated by the physics engine until woken up again. This is done to improve performance and to help prevent small jitter that is typically present in collisions.
- Indicates that the body can not be deactivated by the physics engine. See
Sleeping
for information about sleeping. - How long the velocity of the body has been below the
SleepingThreshold
, i.e. how long the body has been able to sleep.
Enums§
- A non-deformable body used for the simulation of most physics objects.