• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
-1
Question by JackJones · Jul 01, 2010 at 12:48 AM · collidertornado-twinswormonoff

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 ;)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

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);
Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Daniel 8 · Jul 01, 2010 at 12:57 AM 0
Share

My way is easier?

avatar image AnaRhisT · Jul 01, 2010 at 01:01 AM 0
Share

Assuming 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 mines works like a charm ;)

avatar image Daniel 8 · Jul 01, 2010 at 01:02 AM 0
Share

I did the tornado twins tutorial, i no wat im talking about, you dont need another script its easy

avatar image
-2

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Internal collisions 1 Answer

how to create Objectives 1 Answer

Unity Height Glitch (explained) 1 Answer

GAMEOVER SCRIPT for worm game 2 Answers

shooting and seeing through walls. 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges