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 post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by aikprot · Feb 23, 2013 at 10:10 PM · collidermaterialnavigationguide

Character + navigation collider problem

Ι've been assigned a project in which a guide gives instructions orally or through text to the user regarding his position in an interior area. So far, i have created the user's avatar as a first person controller in which i have embedded a static (unanimated) character model which represents the guide. It holds a constant position on the right side of the avatar and moves with it. The problem is that even though i have added colliders both in the guide's mesh(mesh collider) and in the avatar(rigid body) the quide still seems not to be materialised (passes through walls).

Where lies the problem? Do you think there is a better way to implement the whole project? Thanks in advance.

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 theundergod · Feb 23, 2013 at 10:22 PM 0
Share

Are you parenting the guide to the player's character model?

avatar image aikprot · Feb 24, 2013 at 04:48 PM 0
Share

Yes, I am.

1 Reply

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

Answer by theundergod · Feb 23, 2013 at 11:19 PM

Correct me if I'm wrong, but if you are parenting the guide to the player's character model then it won't matter what colliders you have on your guide because the physics calculations are taking place on the CharacterController of the player's character object and moving the entire GameObject accordingly. If you want the guide to collide too then I can think of two ways of doing this:

1 - (Not recommended) Make the CharacterController large enough to encompass the guide so it will be included in the CharacterController's calculations.

2 - Leave the guides as an independent GameObject but put a CharacterController/CharacterMotor on it. Then use then use your player's CharacterController's inputMoveDirection and assign it to the guide's inputMoveDirection. You would also need to write code that will constantly monitor the guide's position relative to the player's model and move it as necessary to keep it in place.

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 aikprot · Feb 24, 2013 at 08:53 PM 0
Share

thank you very much!

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.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Material Sphere Green 1 Answer

Internal collisions 1 Answer

how to change physics material of a colider in runtime 5 Answers

Material doesn't have a color property '_Color' 4 Answers

what value should i change to get football from material 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