- Home /
Ignore collision at high velocity.
I need to allow a collider to pass through another when it is moving at a high enough speed. it is a very simple problem but I cant find a solution. This is unity 2d. There is no physics ignore collision. I tried setting up a trigger in front of the collider to move tthe object to a layer that didn't collide, but it doesn't seem to happen fast enough because they still collide the first time. I need the objects to ignore the effects of the collision until it is over. Any help would be greatly appreciated.
Post the question just once ,your question should go through moderation . So dont worry if click post it will be posted after a while
So be patient
:-)
Answer by gridside · Feb 18, 2014 at 04:50 PM
I think you should check the velocity value in update function of the moving object. Then you can add basic logic to enable/disable game objects collider component.
Thanks very much this is exactly the fix. disable the collider directly sinec it is an instance variable and you don't have to wait for a function to execute.