2014-08-29 5 views

답변

-1
//this is the first axis  
Vector3 axis1 = whatever; 
//this is the second axis 
Vector3 axis2 = whatever; 
//this normalizes the second axis 
axis2.Normalize(); 
//this multiplies the the second axis with the first axis' magnitude 
axis2 *= axis1.magnitude; 
+0

감사합니다. 이것은 도움이되지만, "무엇이든지"가 변수라고 생각하면 이해가되지 않는다고 생각합니다 ...? – theRelation

+0

코드를 게시하는 대신 답변을 설명하십시오. – Tony

+0

감사합니다. Tony! 나는 더 많은 설명을 할 수있다. 어떤 사람은 내가 정말로 요구하고있는 것이 하나의 축에 무언가의 위치를 ​​가져 와서 별도의 축에있는 다른 객체에 전달하는 방법이라고 제안했다. – theRelation