bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

AnyCollider context

Open oxkitsune opened this issue 4 months ago • 1 comments

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 the AnyCollider trait
  • Optionally query for this context in the broad/narrow phase
  • Pass the Option<Context> to the AnyCollider methods when called

Changelog

  • Changed: AnyCollider requires a Context GAT, to provide additional context from the ecs.

oxkitsune avatar Oct 04 '24 10:10 oxkitsune