public float getCollisionCylinderRadius(Mogre.Entity entity, Mogre.SceneNode Node) { //PROFILER__LOGICCOMPONENT_GETCOLLISIONCYLINDERRADIUS Mogre.Vector3 size = Node.GetScale() * entity.BoundingBox.Size / 2; return size.x; }
public Mogre.Vector3 getCollisionEllipsoidSize(Mogre.Entity entity, Mogre.SceneNode Node) { //PROFILER__LOGICCOMPONENT_GETCOLLISIONELLIPSOIDSIZE return Node.GetScale() * entity.BoundingBox.Size / 2; }
public float getCollisionCylinderHeight(Mogre.Entity entity, Mogre.SceneNode Node) { //PROFILER__LOGICCOMPONENT_GETCOLLISIONCYLINDERHEIGHT Mogre.Vector3 size = Node.GetScale() * entity.BoundingBox.Size; return size.y; }