[SOLVED] Box collider not detect fired ball sphere collider

hi , I move a box collider with teleport and shoot a ball to that box but some time box collider not detect sphere collision and ball ride a way that box (box act like ghost)

box collider :
half extents: 0.02x 1y 0.7z
rigid body:
kinematic
friction 0.5
restituion: 0.5

sphere collider :
radius 0.13
rigidbody:
mass 1
friction 0.5
restitution 0.26

Hi @mrb71 and welcome,

It may be a case where the ball is moving through the collider too fast.

You may be able to easily fix this by enabling CCD (continuous collision detection) for the ball.

Check this example:

https://developer.playcanvas.com/en/tutorials/physics-with-ccd/

2 Likes

Thank you @Leonidas it’s done.

1 Like