- Home /
Re enable Physics between Objects
This problem is kind of syntax problem
i have used Physics.ignorecollision To Disable Collision between the player and a block in my 2d game
but i want to re enable physics between this two in a situation (when he is higher than them just like doodle jump jumping the blocks!!) but i dont know what to do
is there a function ??
Which enables Physics between two Objects or should i call Physics.ignorecollision again if i should call this function again then how can understand if there is any collision between them or not?!
You Wanna know why do i want it like this? ok assume doodle jump the guy was jumping but his head would never hit the topper blocks i want my blocks act like that Ok??
Re enable ! i mean!! oops sorry! i mean i have disabled it i want o enable it again!
Answer by Fattie · Sep 20, 2012 at 09:04 AM
it is very likely that you simply want to enable and disable the collider.
http://docs.unity3d.com/Documentation/ScriptReference/BoxCollider.html
notice the "enabled" first entry
http://docs.unity3d.com/Documentation/ScriptReference/Collider-enabled.html?from=BoxCollider
hope it helps !
Thank You So much this is much better than disabling collision between two objects in my situation!
Your answer

Follow this Question
Related Questions
Increasing force script, physics and a special 2 wheel Bike setting 0 Answers
swipe movement script like in subway surfer 0 Answers
Car goes a bit left when moving 1 Answer
Sinking Script 1 Answer
Physics controls with look ahead. 0 Answers