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