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