engine icon indicating copy to clipboard operation
engine copied to clipboard

Position of child colliders of Compound Collider isn't updated during or after animation

Open ninito-ph opened this issue 3 years ago • 0 comments

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:

  1. Create an entity with a Compound Collider and multiple child colliders.
  2. 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;
})

ninito-ph avatar Sep 06 '22 15:09 ninito-ph