- Home /
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
(liketransform.up
but customized).Vector right
(liketransform.right
).Vector forward
(liketransform.forward
, but was created by usingVector3.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 vectorsright
andforward
).Plane1 area
(area which can be reached by expandingplan1
,finalLookat point
may lies on this area when it goes out ofplan1
sincevector 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.
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.
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
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
Your answer
Follow this Question
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