lilith3d::MD2Mesh Class Reference

#include <md2.h>

Inheritance diagram for lilith3d::MD2Mesh:

lilith3d::AnimatedMesh lilith3d::Mesh List of all members.

Detailed Description

Mesh for working with MD2 resources.


Public Member Functions

void SetAction (int action)
 Set the current action (MD2_STAND, MD2_RUN) to play for the animation.
int GetAction ()
 Return the current action.
bool ActionOkay (int newAction)
void CalcWeaponOrigin (grinliz::Vector3F *origin) const
 Return the coordinates of the weapon, in world space.
const MD2ResourceGetMD2Resource () const
 Query the resource for this mesh.
virtual void IntersectRay (int flags, const grinliz::Vector3F &point, const grinliz::Vector3F &dir, LilithObjectList *vec)


Member Function Documentation

bool lilith3d::MD2Mesh::ActionOkay ( int  newAction  ) 

Only certain animations can transition at any time. Standing to running at any time makes sense, but PAIN must complete before running. This method returns true if the transition to the requested state is okay visually. (You can SetAction at any time, regardless, it will just look odd.

virtual void lilith3d::MD2Mesh::IntersectRay ( int  flags,
const grinliz::Vector3F &  point,
const grinliz::Vector3F &  dir,
LilithObjectList *  vec 
) [virtual]

Check for intersection with the current Mesh.

Implements lilith3d::AnimatedMesh.


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:27 2007 for Lilith3D by  doxygen 1.5.1-p1