Stop it!

Hello !

In my game if a colliding object hits the target collider at high speed it penetrates into the target tell me a way out with which I can stop the object getting into the target…while maintaining high speed…

Thanks…

Well unity claims that rigidbody collision detection prevents this , but as you have discovered , and as i hvae found numerous times before, rigidbodies still goes through things at high speed. Definately would like an all out fix for this. Having to script around it is not ideal , considering that the engine claims it shouldnt be a problem.

Change collision detection to continuous.

i have done this , and i still can get rigidbody to go through objects, its not as reliable as it claims to be … un.less of course im missing something in the rigidbodies actual movement… hmm , not sure i will look into it later.

Not working still the object goes through the target object…

Not working still the object goes through the target object…

Try slowing your object way down. When you move an object its not actually moving its teleporting, your just teleporting it a set distance and checking if its inside something, if so its moving back. If you move the object further then the length of something its supposed to collide with it warps to the other side. If its absolutely imperative i bet you could use ray casts to figure out if anythings in front of it.

Actually my object is not moving it’s kind of flying following a projectile path… when my object rotates raycast changes its direction with some angle…and I 'm working on precise collisions so can’t use raycast i guess…

You can set smaller fixed time step to check if it will help

Please explain …!

You can find the fixed time step in Edit->Project->Time Settings.

How are you moving your object? Using translation or force? If your using it through updating its transform.position its likely your moving it too fast, either lower your speed or raycast.