Skip to content

How to relate xpbd Position to Bevy Transform #142

Answered by Jondolf
floppyhammer asked this question in Q&A
Discussion options

You must be logged in to vote

What's the meaning of a xpbd Position? If I have an entity with a parent transform, when I add a Kinematic body to the entity, its Transform will be determined by its Position right? Is the Position global?

The Position and Rotation components represent the global transforms of physics bodies. GlobalTransform should be automatically updated to match these components. On the main branch, you can also directly use Transform instead of Position for moving bodies.

There are several reasons why we currently use these separate components: (from Bevy Discord)

Q: What is the Position component used for? I didn’t fully understand it’s purpose from the docs, and how does it differ from the trans…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

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

@Jondolf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants