示例#1
0
        public bool CheckCollisions(PhysicsObj obj)
        {
            SpherePath.InsertType = InsertType.Placement;
            SpherePath.SetCheckPos(SpherePath.CurPos, SpherePath.CurCell);

            return(obj.FindObjCollisions(this) != TransitionState.OK);
        }
示例#2
0
文件: Transition.cs 项目: zarlant/ACE
        public bool CheckCollisions(PhysicsObj obj)
        {
            SpherePath.InsertType     = InsertType.Placement;
            SpherePath.CheckPos       = SpherePath.CurPos;
            SpherePath.CheckCell      = SpherePath.CurCell;
            SpherePath.CellArrayValid = false;
            SpherePath.CacheGlobalSphere(Vector3.Zero);

            return(obj.FindObjCollisions(this) != TransitionState.OK);
        }