notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

Transform.md (846B)


      1 # Transform
      2 
      3 CS 331 W11 L2
      4 
      5 # Notes
      6 
      7 **Definition:** This gives an object's position, rotation and scale in 3d space. 
      8 
      9 In Unity, we have a left handed coordinate system as oppossed to the standard right handed universe. In this universe, we have y is up and down instead of the expected z axis. 
     10 
     11 Additionally, each game object has its own local coordinate system that moves with the object. In this way Z becomes forward, X becomes right, and y becomes up with respect to positive values on said axis. 
     12 
     13 The datatype used to represent position in 3d space is [Vector3](Vector3.md) Each x,y,z component is of datatype float. 
     14 
     15 See [Quaternions](Quaternions.md) for rotations.
     16 
     17 Object is transform while the datatype is Transform. 
     18 
     19 Transforms have the following public members:
     20 
     21 1. position (Vector3)
     22 2. rotation (Quaternion)
     23 3. scale (Vector3)