public virtual void AddOnCollisionCallbackEventHandler(BICollisionCallbackEventHandler myCallback)
        {
            BPhysicsWorld bhw = BPhysicsWorld.Get();

            m_onCollisionCallbacks.Add(myCallback);
            bhw.RegisterCollisionCallbackListener(myCallback);
        }
        public virtual void RemoveOnCollisionCallbackEventHandler()
        {
            BPhysicsWorld bhw = BPhysicsWorld.Get();

            if (bhw != null && m_onCollisionCallback != null)
            {
                bhw.DeregisterCollisionCallbackListener(m_onCollisionCallback);
            }
            m_onCollisionCallback = null;
        }
        public virtual void RemoveOnCollisionCallbackEventHandler(BICollisionCallbackEventHandler myCallback)
        {
            BPhysicsWorld bhw = BPhysicsWorld.Get();

            if (bhw != null && m_onCollisionCallbacks.Contains(myCallback))
            {
                m_onCollisionCallbacks.Remove(myCallback);
                bhw.DeregisterCollisionCallbackListener(myCallback);
            }
        }
        public virtual void AddOnCollisionCallbackEventHandler(BICollisionCallbackEventHandler myCallback)
        {
            BPhysicsWorld bhw = BPhysicsWorld.Get();

            if (m_onCollisionCallback != null)
            {
                Debug.LogErrorFormat("BCollisionObject {0} already has a collision callback. You must remove it before adding another. ", name);
            }
            m_onCollisionCallback = myCallback;
            bhw.RegisterCollisionCallbackListener(m_onCollisionCallback);
        }
        public virtual void RemoveOnCollisionCallbackEventHandler()
        {
            WorldController bhw = GetWorld();

            if (bhw != null && m_onCollisionCallback != null)
            {
                bhw.DeregisterCollisionCallbackListener(m_onCollisionCallback);
            }

            m_onCollisionCallback = null;
        }
 public virtual void RemoveOnCollisionCallbackEventHandler()
 {
     BPhysicsWorld bhw = BPhysicsWorld.Get();
     if (bhw != null && m_onCollisionCallback != null)
     {
         bhw.DeregisterCollisionCallbackListener(m_onCollisionCallback);
     }
     m_onCollisionCallback = null;
 }
        public virtual void AddOnCollisionCallbackEventHandler(BICollisionCallbackEventHandler myCallback)
        {
            BPhysicsWorld bhw = BPhysicsWorld.Get();
            if (m_onCollisionCallback != null)
            {
                Debug.LogErrorFormat("BCollisionObject {0} already has a collision callback. You must remove it before adding another. ", name);

            }
            m_onCollisionCallback = myCallback;
            bhw.RegisterCollisionCallbackListener(m_onCollisionCallback);
        }