how do you stop object from going through each other

is there any way to keep objects from going through each other at higher speeds?
when I shoot an object too fast it will almost always ignore collision
is there any way of stopping this?

it doesn’t even take very much force for it to happen either
and its really annoying :frowning:

There are a few options.

  • Stop moving things so quickly. :wink:
  • Make your colliders longer in the direction of travel to improve the likelihood that some part of the collider will make contact.
  • Choose Edit->Project Settings->Time from the menu and reduce the value of Fixed Timestep. Try halving it to begin with. This will increase the accuracy of the simulation, but will also increase the amount of processing required and may make things too slow if your computer can’t keep up. You might also have to alter some of your code to make things run at the correct real-world speed if you didn’t multiply with Time.deltaTime in the right places
  • Do a raycast in the direction of travel to detect if you’re about to hit something. There’s a script on the wiki which does this.
  • Stop using colliders for this purpose and just do raycasts. This is appropriate if your collider represents things which are moving so quickly that they arrive at their destination pretty much instantaneously, like bullets.

thank you so much :smile: