bevy_xpbd
bevy_xpbd copied to clipboard
AnyCollider context
Objective
Provide a way for the methods in AnyCollider
to obtain extra context from the ecs/entity it is attached to.
Solution
- Add a
Context
GAT to theAnyCollider
trait - Optionally query for this context in the broad/narrow phase
- Pass the
Option<Context>
to theAnyCollider
methods when called
Changelog
- Changed:
AnyCollider
requires aContext
GAT, to provide additional context from the ecs.