Skip to content

Rapier sensor shape ignores ColliderScale component #79

@Person-93

Description

@Person-93

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions