dimforge / dimforge/bevy_rapier

Colliders not at correct position if added after Transform component

Open
#289 0 comments 2 reactions 0 assignees View on GitHub
A-Integration C-Bug D-Medium P-Low S-not-started
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

It seems that if I add a ``Collider`` component to an entity after I insert the transform (for example from another system) then it does not 'move' to the correct position, it just stays at position (0, 0). This can be fixed by re-adding the ``Transform`` component, which then updates the colliders position

Crate versions:
``bevy = "0.9"``
``bevy_rapier2d = { version = "0.19.0", features = [ "simd-nightly", "debug-render" ] }``

Minimal reproducible example: https://github.com/Ox512/collider-issue

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.