I wonder if this is impossible physics, since we want the cylinder and upper sphere of the Capsule to neglect collisions between the 3 Capsule physicsImpostors. However, we also want the cylinder and upper sphere to respect collisions with the red slide physicsImpostor.
I would be grateful if anyone could offer insight on this. Thank you
Cannon also has a Point-to-point joint type, which practically connects impostors at a fixed point, so it is also an option if you find it hard working with compounds
@RaananW, with your solution, the Capsule’s upper portion collision is far better. However, there is still a little bit of clipping, and part of the top sphere and cylinder can enter into the red slide.
If we can somehow make the Compound have precise collisions, then I think we could add the rest of the Capsule (cylinder and sphere) and have precise Capsule collisions. Thank you for all your time and help, @RaananW
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)
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?