Skip to content

No more bundles? #174

Answered by sebcrozet
Luminoth asked this question in Q&A
May 20, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

That’s right, there is no more bundles. For rigid-bodies, the only required component is the bevy_rapier::prelude::RigidBody component. For colliders, the only required components is the bevy_rapier::prelude::Collider component.

All the other components are optional and will have their default values if they are not set. You may want to insert the optional components if:

  • You want to set their value (for example, insert/modify the Transform component to set the body’s position).
  • You want to read their values after they are modified by the physics engine. For example, inserting the Velocity components lets you read the value of the modified velocity after the physics updates.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Luminoth
Comment options

You must be logged in to vote
1 reply
@sebcrozet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants