- Home /
Turn colliders off in script
i have my worm game made from tornado twins tutorial however when i hold back arrow my worm is colliding with all the other pieces of my worm causing it to go up in the air so how would i go about
if(Input.GetButtonDown("s")) get rid of the collider
unless you have a better suggestion on how to get rid of this glitch
please help thanx ;)
Answer by AnaRhisT · Jul 01, 2010 at 12:55 AM
First Solution:(physics are gone)
if(Input.GetButtonDown("s")) isTrigger = true;
Second Solution:(Ignoring physics with OTHER colliders)
Physics.IgnoreCollision(AnotherObject.collider, collider);
Assu$$anonymous$$g he wants Ignore my way is better. About the physics that are gone like u suggested i don't know, isTrigger or ur suggestion should be fine, idk about urs, but $$anonymous$$es works like a charm ;)
I did the tornado twins tutorial, i no wat im talking about, you dont need another script its easy
Answer by Daniel 8 · Jul 01, 2010 at 12:54 AM
Dude i had the same problem, just make your the back pieces are off the ground, arnt touching or turn them of in the editor? Its pretty straight forward
Your answer
Follow this Question
Related Questions
how to create Objectives 1 Answer
GAMEOVER SCRIPT for worm game 2 Answers
shooting and seeing through walls. 1 Answer
Having Trouble With "Worm" T_T Tutorial 2 Answers
Why does my character keep falling? 6 Answers