Exemplo n.º 1
0
 public static Vector3 Square(this Vector3 v)
 {
     return(V3Extension.DotMul(v, v));
 }
Exemplo n.º 2
0
 void Right(float value)
 {
     V3Extension.Add(ref moveAccel, transform.right);
 }
Exemplo n.º 3
0
 void Left(float value)
 {
     V3Extension.Subtract(ref moveAccel, transform.right);
 }
Exemplo n.º 4
0
 void Back(float value)
 {
     V3Extension.Subtract(ref moveAccel, transform.forward);
 }
Exemplo n.º 5
0
 void Forward(float value)
 {
     V3Extension.Add(ref moveAccel, transform.forward);
 }
Exemplo n.º 6
0
 /// @return 1 if totally the same orientations, <0 if not matched. the less, the less matched.
 public float GetMatchScore()
 {
     return(1 - V3Extension.DotDiv(m_distance, m_realThres).Max());
 }