internal Contact CollideWith(PhysicalBody pOther, long pGameTime) { if (mBoundingVolume == null) { return(null); } return(mBoundingVolume.CollideWith(pOther.mBoundingVolume, pGameTime)); }
internal void NotifyCollision(PhysicalBody physicalBody) { ICollisionListener collisionListener = Self.GetAIComponent(); if (null != collisionListener) { collisionListener.OnTouch(physicalBody.Self); } }
public BoundingSphere(PhysicalBody body, float pRadius) { mBody = body; mRadius = pRadius; }
public PhysicalBody Second; // secondo collidable public CollisionData(PhysicalBody pFirst, PhysicalBody pSecond, Contact pContact) { Contact = pContact; First = pFirst; Second = pSecond; }