Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
This question was closed Jan 24, 2018 at 02:47 PM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by wall · Nov 27, 2010 at 12:53 PM · collisioncharactercontrollerignorecollision

How to disable the collider of a character controller?

hi all, i need some help with the character contoller. I have a ghost that moves around the scene according to a set of waypoints. It has attached a character controller but, since it is a ghost, I want it to pass trough the objects. Then, the character controller acts like a collider and it makes it no possible. How can I disable the collisions of a character controller? I supose that it's easy, but I am very new at working with unity -sorry-. I have been searching trough the questions in the forum but I cannot find the solution.

thank you very much.

Comment
Add comment · Show 2
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 wall · Nov 27, 2010 at 01:57 PM 0
Share

Is it possible to reverse the state of IgnoreLayerCollision (from true to false) during the gameplay?

Sorry for multiple posts

avatar image Mike 3 wall · Nov 27, 2010 at 03:01 PM 0
Share

Call it again with false as the last parameter (and use comments ;) )

1 Reply

  • Sort: 
avatar image
4

Answer by wall · Nov 27, 2010 at 01:15 PM

I have just found a solution: I have created a new layer containing my ghost (layer number 9) and i have made a starting function to ignore the collision with the default layer (number 0)

Physics.IgnoreLayerCollision(0,9, true);

Is there any better formula? Thanks!

Comment
Add comment · Show 1 · 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 Mike 3 · Nov 27, 2010 at 03:01 PM 0
Share

You can set it from Edit > Project Settings > Physics

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Bullets colliding with Character Controller 3 Answers

Ignore collision between character controller and a rigid body object 1 Answer

Character Controller goes through objects 2 Answers

Getting Character controller to fit model? 0 Answers

When using a character controller for the player, can other colliders be used alongside the character controller? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges