Collision Detection

Hey!Is there anyway to test if an object that has a collider went trough another object with a collider?I don’t mean when it entered the collision or something,but if it went trough.
Please help me :frowning:

If you mean ‘tunneling’ you will need to use some form of CCD.

If you actually want it to tunnel, then you going to have to better describe what you want.

Usually that’s done by casting a raycast in the direction it just came from, for the distance it moved since last frame. Alternatively, you can cast a raycast forward to predict whether or not you will go through next frame.

Wow!I just refreshed the page and boom!I wanted to put a picture but you replied too fast :smile:
This is what i mean : ImageShack - Best place for all of your image hosting and image sharing needs

Yes,but i need a way of continously checking if it is inside another object that has a collider or not.

What is a CCD?

Edit: Do you think that a SphereCast would help me?

Try to increase the physics solver iterations count in Project Settings > Physics.

i guess one of these 2 would help u

:slight_smile: