- Home /
Question by
Jmschrack · Apr 05, 2015 at 07:03 PM ·
rotationvector3quaternion
Unity's equivalent of Vector3.Transform(...)
Simple question, in Microsoft's C# you have Vector3.Transform(vector3,quaternion). What is the Unity C# equivalent of this?
Comment
Best Answer
Answer by tanoshimi · Apr 05, 2015 at 07:07 PM
The * operator:
transformedVector = myQuaternion * myVector;
http://docs.unity3d.com/ScriptReference/Quaternion-operator_multiply.html
Answer by screenname_taken · Apr 05, 2015 at 07:10 PM
http://docs.unity3d.com/ScriptReference/Transform.html
http://docs.unity3d.com/ScriptReference/Transform-rotation.html
Your answer
Follow this Question
Related Questions
Rotating wrong 0 Answers
Unity Rotate Raycast on Quaternion 1 Answer
how to convert the angle to roatation? 1 Answer
Rotating direction vectors 1 Answer
Perpendicular Vector3 0 Answers