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 /
avatar image
0
Question by wischutz · Mar 31, 2015 at 06:22 AM · movementnavmeshtop downspherecollider

Can't move player's navmesh because the click is on enemy's Sphere Collider (used do set view sight)

Hi!

I'm working on a top down real time strategy.

I add a sphere collider to my enemy to make the sight as unity's stealth project tutorial. But I move my player with mouse click using navmesh, so when I click on sphere collider area, my player doens't move on navmesh, because the click was on sphere collider, no on the floor.

Somebody knows how I can fix it?!

Thanks!

Comment
Add comment · Show 4
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 AeonIxion · Mar 31, 2015 at 07:39 AM 2
Share

Are you using a raycast from the mouseposition? if so, you can set a layermask in the Raycast call and it will ignore every object with that layer.

avatar image wischutz · Mar 31, 2015 at 11:47 AM 0
Share

Thanks! I put my enemy in Ignore Raycast layer and works! But I think this can be a problem to implements the player shoot...

avatar image AeonIxion · Mar 31, 2015 at 12:01 PM 1
Share

Yea, you should create a new layer and assign it to the enemy and then use that in your raycast call. Explained here: http://docs.unity3d.com/$$anonymous$$anual/Layers.html

avatar image wischutz · Mar 31, 2015 at 12:21 PM 0
Share

Thanks! It works perfectly!

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Navmesh Agent Path Not Updating 1 Answer

NavMesh movement and rotation 1 Answer

Can't get player to walk to object using NavMeshAgent 1 Answer

Navmesh works fine at longer distances but bugs out at shorter? 0 Answers

Top-Down Shooter Motion 2 Answers


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