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

init_rigid_bodies should run after TransformPropagate #88

Closed
LeshaInc opened this issue Jul 19, 2023 · 0 comments · Fixed by #89
Closed

init_rigid_bodies should run after TransformPropagate #88

LeshaInc opened this issue Jul 19, 2023 · 0 comments · Fixed by #89
Labels
C-Enhancement New feature or request

Comments

@LeshaInc
Copy link
Contributor

init_rigid_bodies should run after TransformPropagate, since it uses GlobalTransform when Position is missing.

Otherwise newly spawned entities fall back to (0, 0, 0) position.

This would mean that new entities would start moving according to physics only on the next frame. To mitigate that, transform propagation could be run twice — before and after the physics. The 'before' system can have a condition to run only if there are added rigid bodies.

Fixing this should make child colliders possible (at least for static bodies).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants