Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Pain of the dark · Oct 04, 2015 at 11:35 AM · vector3lookatplanevector2points

Get mapping postion of 1 point on a plane defined by 3 points

Hi, I'm beginner in Unity 3D, so please forgive me if I ask something sounds silly.

I have 5 vectors as below:

  • Vector normal (like transform.up but customized).

  • Vector right (like transform.right).

  • Vector forward (like transform.forward, but was created by using Vector3.Cross(vectorRight, vectorNormal) ).

  • Vector lookat (my character is looking along this vector).

  • Vector finalLookat (but I need my character look along this vector as the final result).

  • Plane1(is defined by 2 vectors right and forward).

  • Plane1 area(area which can be reached by expanding plan1, finalLookat point may lies on this area when it goes out of plan1 since vector lookat will rotate all the time).

Because of customizing of 2 vectors normal and forward, vector lookat used to, but no more be the right vector I planned to create.

Please help me to create the vector finalLookat, thank a lot.

alt text

asking.png (39.9 kB)
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 meat5000 ♦ · Oct 04, 2015 at 09:24 AM 0
Share

transform.forward and Vector3.forward are already defined. It is not clear what you are asking. t.f works in local coords. v.f works in world space.

avatar image Pain of the dark · Oct 04, 2015 at 01:13 PM 0
Share

Hi @meat5000 thanks for your comment. I'm using custom vector axis, not the default one. Because my character can walk on wall. I'm not finding the transform.forward but the mapping point of yelllow point (vector lookat) on plane1, which allow me to rotate character looking along vector finalLookat

1 Reply

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

Answer by Pain of the dark · Oct 06, 2015 at 12:42 AM

I finally found the answer. For who have the same problem with me, please check this link:answer

Comment
Add comment · 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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Rotating A Vector2 Input Into A Vector3 1 Answer

[HELP] Translating vector 2 co-ordinates to real space 1 Answer

Resize Plane? 1 Answer

Find third point resulting in a right angle triangle with 2 known points 1 Answer

Vector2 Normalize ? 3 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