Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rapier sensor shape ignores ColliderScale component #79

Open
Person-93 opened this issue Jan 14, 2025 · 0 comments
Open

Rapier sensor shape ignores ColliderScale component #79

Person-93 opened this issue Jan 14, 2025 · 0 comments

Comments

@Person-93
Copy link
Contributor

The bevy_rapier crates have ColliderScale components that let you re-scale the collider in addition to, or instead of using the GlobalTransform. This lets you do things like give one entity a Sprite and a Collider. You can use the ColliderScale to make the collider match the sprite.

The sensor shape components in the rapier integrations ignore this.

This system in bevy_rapier is where the scale gets applied.
https://github.com/dimforge/bevy_rapier/blob/3d0e4c4be83b73fb04bc94e3464a7995364b3b94/src/plugin/systems/collider.rs#L48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant