@@ -6,6 +6,7 @@ public class Transformations : MonoBehaviour
6
6
public Vector3 translation ;
7
7
public Vector3 scaling ;
8
8
public Vector3 rotation ;
9
+ public Vector3 shear ;
9
10
public GameObject center ;
10
11
11
12
void Start ( )
@@ -18,12 +19,13 @@ void Start()
18
19
{
19
20
Coords position = new Coords ( point . transform . position , 1 ) ;
20
21
21
- position = HolisticMath . Translate ( position , new Coords ( new Vector3 ( - c . x , - c . y , - c . z ) , 0 ) ) ;
22
- position = HolisticMath . Rotate ( position , rotation . x , true , rotation . y , true , rotation . z , true ) ;
23
- point . transform . position = HolisticMath . Translate ( position , new Coords ( new Vector3 ( c . x , c . y , c . z ) , 0 ) ) . ToVector ( ) ;
22
+ point . transform . position = HolisticMath . Shear ( position , shear ) . ToVector ( ) ;
24
23
25
24
/*
26
25
26
+ position = HolisticMath.Translate(position, new Coords(new Vector3(-c.x, -c.y, -c.z), 0));
27
+ position = HolisticMath.Rotate(position, rotation.x, true, rotation.y, true, rotation.z, true);
28
+ point.transform.position = HolisticMath.Translate(position, new Coords(new Vector3(c.x, c.y, c.z), 0)).ToVector();
27
29
position = HolisticMath.Scale(position, new Coords(new Vector3(scaling.x, scaling.y, scaling.z)));
28
30
29
31
*/
0 commit comments