# CannonJS not respecting children physicsImpostors when colliding with other physicsImpostors

**URL:** <https://forum.babylonjs.com/t/cannonjs-not-respecting-children-physicsimpostors-when-colliding-with-other-physicsimpostors/12320>\
**Category:** Questions\
**Created:** [July 8, 2020, 10:17am UTC](https://forum.babylonjs.com/t/cannonjs-not-respecting-children-physicsimpostors-when-colliding-with-other-physicsimpostors/12320 "2020-07-08T10:17:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![gbz](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gbz/32/23780_2.png) [@gbz](https://forum.babylonjs.com/u/gbz)\
**Post date:** [July 8, 2020, 6:05pm UTC](https://forum.babylonjs.com/t/cannonjs-not-respecting-children-physicsimpostors-when-colliding-with-other-physicsimpostors/12320/6 "2020-07-08T18:05:41Z")

</div>

Ah, turns out where we place the Compound point (center of mass?) has an effect.

Changes made:  
Placed Compound point in the center of Capsule (between both spheres and in the center of cylinder)  
`setAngularVelocity` of Compound to zero in every simulation step (seems to not have an effect after the first change was made)

Not perfect yet, but getting very close 😛 : [https://www.babylonjs-playground.com/#3EDS3A#96](https://www.babylonjs-playground.com/#3EDS3A#96)

The spheres can still slightly clip into the red slide. I think this is because while the Compound point (center of mass) is now in the center of the Capsule, it is not in the center of each sphere?

---

_[View the full topic](https://forum.babylonjs.com/t/cannonjs-not-respecting-children-physicsimpostors-when-colliding-with-other-physicsimpostors/12320)._
