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
2
Question by DaveA · Nov 04, 2010 at 11:39 PM · charactercontrollerclicklocomotion

Anyone have a 'click to move here' character controller script?

Hoping to save myself some time: I'm looking for a script that works with the Locomotion system, probably a 'motor', that will find the point on the ground where the user has clicked the mouse, and tell the character to go there. Anyone know of such a thing?

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 Max Kaufmann · Nov 05, 2010 at 12:19 AM 0
Share

Your stated requirement is too generic. Click... on a tagged floor colliders? On terrain? Also, how should they moved -- A-Star style? Directly? Physically? With easing? It's ultimately a creative decision that will need to be tweaked, you won't find an out-of-the-box solution.

avatar image DaveA · Nov 05, 2010 at 12:29 AM 0
Share

I would start simple: click on an point (preferably on a horizontal-ish place) and it LERP's there at a given speed. Can add easing and such later. Using Locomotion, it would use the walk animation, turn if needed first, then idle when destination is reached. I've been mashing together some stuff I found around and at the script wiki, nothing working well.

avatar image DaveA · Nov 05, 2010 at 12:53 AM 0
Share

Ok, I worked it out. $$anonymous$$ay post to script wiki.

avatar image Herman-Tulleken · Nov 05, 2010 at 06:02 AM 0
Share

And put the link here as well :)

1 Reply

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

Answer by DaveA · Nov 05, 2010 at 08:00 PM

Here: http://www.unifycommunity.com/wiki/index.php?title=ClickCharacterController

Comment
Add comment · Show 4 · 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 Art 1 · Jan 19, 2011 at 05:10 PM 0
Share

Thanks, needed that

avatar image Codinablack · Jul 08, 2016 at 05:18 AM 0
Share

This link is no longer valid, can I please get that script I am trying to figure out how to implement this into my own character controller script. Thank you.

avatar image tanoshimi Codinablack · Jul 08, 2016 at 06:01 AM 0
Share

http://wiki.unity3d.com/index.php/ClickCharacterController

avatar image Codinablack tanoshimi · Jul 08, 2016 at 07:36 AM 0
Share

Thank you for that, turns out that is not what I need. I thought it would be using a Character Controller collider component, not the Character $$anonymous$$otor component. Any idea how to use the position of the mouse click from the raycast to use the controller,move() or even simple$$anonymous$$ove()?

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

2 People are following this question.

avatar image avatar image

Related Questions

character controller quit working, script errors 0 Answers

Character Controller Jittering Problem 2 Answers

Object reference not set to instance of an object 2 Answers

Very Simple Left and Right Movement Script [OR] disable dravity on CharacterController? 2 Answers

Ball Character controlled by a single Joystick? 0 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