Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rotations [2020/04/10 20:21]
paul removed
— (current)
Line 1: Line 1:
-====== General ====== 
- 
-===== Rotations ===== 
-Unity uses 3 rotation systems. 
- 
-  - Euler Angers - rotation about x, y, z axis 
-  - Axis Angle - A normalized Vector3  
-  - Quaternions 
- 
- 
- 
-<code c#> 
-// Convert from Quaternion to Euler: 
-Vector3 inEuler = quaternionRotation.eulerAngles; 
- 
-// Convert Euler to Quaternion 
-Quaternion inQuaternion = Quaternion.Euler(inEuler); 
- 
-// To Axis-Angle 
-float angle; 
-Vector3 axis; 
- 
-randomRotatin 
-</code> 
  
  • rotations.1586550083.txt.gz
  • Last modified: 2020/04/10 20:21
  • by paul