Example #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;
 }
Example #2
0
        public Mogre.Vector3 getCollisionEllipsoidSize(Mogre.Entity entity, Mogre.SceneNode Node)
        {
            //PROFILER__LOGICCOMPONENT_GETCOLLISIONELLIPSOIDSIZE

            return Node.GetScale() * entity.BoundingBox.Size / 2;
        }
Example #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;
 }