public void OnCollisionEnter(Collision c) { UnityGameObjectBridge other = c.gameObject.GetComponent<UnityGameObjectBridge>(); if (null != other) { Uniject.Collision testableCollision = new Uniject.Collision(c.relativeVelocity, other.wrapping.transform, other.wrapping, c.contacts); wrapping.OnCollisionEnter(testableCollision); } }
public void OnCollisionEnter(Collision c) { UnityGameObjectBridge other = c.gameObject.GetComponent <UnityGameObjectBridge>(); if (null != other) { Uniject.Collision testableCollision = new Uniject.Collision(c.relativeVelocity, other.wrapping.transform, other.wrapping, c.contacts); wrapping.OnCollisionEnter(testableCollision); } }
//TODO:: added for backwards compatibility, remove and put on collision based components public virtual void OnCollisionEnter(Collision c) { }
public override void OnCollisionEnter(Uniject.Collision collision) { onCollisionEnterCalled = true; }
public override void OnCollisionEnter(Uniject.Collision c) { source.playOneShot(beep); }