Skip to content

how do i get root rigid body from collider entity? #780

Closed Answered by Vrixyz
Nigless asked this question in Q&A
Discussion options

You must be logged in to vote

From the RapierContext you can retrieve the rigidbody with https://docs.rs/bevy_rapier3d/0.28.0/bevy_rapier3d/plugin/struct.RapierContext.html#method.rigid_body_entity

To access the collider properties, as you have the Collider entity, you can query for its related components listed in https://docs.rs/bevy_rapier3d/0.28.0/bevy_rapier3d/geometry/struct.Collider.html.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Nigless
Comment options

@Vrixyz
Comment options

Vrixyz Jan 6, 2025
Collaborator

Answer selected by Nigless
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