Наследование: ICollision
Пример #1
0
 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);
     }
 }
Пример #2
0
    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);
        }
    }
Пример #3
0
 //TODO:: added for backwards compatibility, remove and put on collision based components
 public virtual void OnCollisionEnter(Collision c)
 {
 }
Пример #4
0
 public override void OnCollisionEnter(Uniject.Collision collision)
 {
     onCollisionEnterCalled = true;
 }
Пример #5
0
 public override void OnCollisionEnter(Uniject.Collision c)
 {
     source.playOneShot(beep);
 }