Exemplo n.º 1
0
 public float getCollisionCylinderRadius(Mogre.Entity entity, Mogre.SceneNode Node)
 {
     //PROFILER__LOGICCOMPONENT_GETCOLLISIONCYLINDERRADIUS
     Mogre.Vector3 size = Node.GetScale() * entity.BoundingBox.Size / 2;
     return size.x;
 }
Exemplo n.º 2
0
        public Mogre.Vector3 getCollisionEllipsoidSize(Mogre.Entity entity, Mogre.SceneNode Node)
        {
            //PROFILER__LOGICCOMPONENT_GETCOLLISIONELLIPSOIDSIZE

            return Node.GetScale() * entity.BoundingBox.Size / 2;
        }
Exemplo n.º 3
0
 public float getCollisionCylinderHeight(Mogre.Entity entity, Mogre.SceneNode Node)
 {
     //PROFILER__LOGICCOMPONENT_GETCOLLISIONCYLINDERHEIGHT
     Mogre.Vector3 size = Node.GetScale() * entity.BoundingBox.Size;
     return size.y;
 }