Esempio n. 1
0
 Vector3 RelativeVelocity(MonoPhysicalObject other)
 {
     //Debug.Log("Sphere Vel: " + other.Velocity + " Car Vel: " + ParentVelocity);
     return(other.Velocity - ParentVelocity);
 }
Esempio n. 2
0
 void InverseRelativeVelocity(MonoPhysicalObject other, Vector3 vel)
 {
     other.Velocity = vel + 2f * ParentVelocity;
 }
Esempio n. 3
0
 public CollisionTimer(MonoPhysicalObject a, MonoPhysicalObject b)
 {
     this.a = a;
     this.b = b;
 }