When using MeshBuilder.CreateCapsule
and CapsuleImpostor
, if the total height is set too high (I think over twice the sphere diameter), collisions will be inaccurate. Using Compound impostors seems good for all heights
Height of Capsules: 2 (Good collisions):
Playground: https://www.babylonjs-playground.com/#3EDS3A#489
Height of Capsules: 4 (Inaccurate collisions, bottom and top spheres intersect other impostors):
Playground: https://www.babylonjs-playground.com/#3EDS3A#490
Was wondering if anyone had run into this before? Thank you for your help!
For your reference, the height of the CreateCapsule is defined in:
const capsule = BABYLON.Mesh.CreateCapsule('', {
subdivisions: 2,
tessellation: 16,
height: 2,
radius: 0.5,
capSubdivisions: 6
}, scene);