engine
engine copied to clipboard
Position of child colliders of Compound Collider isn't updated during or after animation
Description
When an entity with a Compound Collider is animated, the position of the child colliders is not updated. Can be seen in this minimal repro project.
Includes LeXXik's Ammo Debug Drawer to view collider positions from Launch tab.
Steps to reproduce:
- Create an entity with a Compound Collider and multiple child colliders.
- Play an animation in the entity that moves the position of the child colliders in the animation.
Workaround
Current workaround is to disable and enable the Compound collider experiencing the issue, along with all its children, like so:
entity.findComponents('collision').forEach(function (collider) {
collider.enabled = false;
})
entity.findComponents('collision').forEach(function (collider) {
collider.enabled = true;
})