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 TheShadyColombian · Jan 29, 2015 at 02:43 AM · c#lookat

[RePost for No Answer] How to make a character look at the direction it's going towards

Hello! my name is Juan. I've had a question for a long time and I just realized how to rephrase it in such way that it'll be easier to understand. I want to make it so that when the character is in the air (I already got that figured out) i want it too be facing in the direction it is going in. kind of like the way an airplane faces in the direction it's going. I would really appreciate any answers, but if possible explain like I'm a 5 year old and in c#. Thanks in advance!

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 Firedan1176 · Jan 29, 2015 at 03:17 AM 0
Share

How are you handling the movement? Is it in a Vector3 value?

avatar image TheShadyColombian · Jan 29, 2015 at 03:22 AM 0
Share

I'm Actually using rigidbody.addForce, so I'm thinking there's no way to make it predeter$$anonymous$$ed

avatar image yashpal · Jan 29, 2015 at 05:13 AM 0
Share

hello @xXJuanXx, I might not understand your question properly. i think you want to find direction where player moving. so from here you can get that. direction or point where player move. so you can change character head direction according to that. ![image][1]

imagetemp.png (12.6 kB)
avatar image TheShadyColombian · Feb 05, 2015 at 02:06 AM 0
Share

yep......?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by GameDev_Chuck · Jan 29, 2015 at 10:49 AM

Have you had a look at http://unity3d.com/learn/tutorials/modules/beginner/scripting/look-at ?

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 TheShadyColombian · Feb 05, 2015 at 02:05 AM 0
Share

Hello! sorry it took me so long to reply. anyway, people have told me to use this, but I don't understand how to? i get this makes the player look at a certain object, but i don't understand how to make it look in the direction it's going in

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

22 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Multiple Cars not working 1 Answer

Look Rotation flipping object rotation after 180 degrees 1 Answer

How to make animated animal's head smoothly look at player instead of instantly snapping? 1 Answer

Renderer on object disabled after level reload 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