20 #ifndef PS_EFFECT_ANCHOR_SPLINE_HEADER 21 #define PS_EFFECT_ANCHOR_SPLINE_HEADER 25 #include <csgeom/spline.h> 39 bool Load(iDocumentNode* node);
41 bool Update(csTicks elapsed);
51 csCatmullRomSpline* spline;
bool rotateWithMesh
Whether the anchor should rotate with the mesh. This is so effects can stay aligned, e.g. flame sword.
bool PostSetup()
Performs things like building the spline from the keyframes.
psEffectAnchor * Clone() const
Clones the effect anchor.
bool Create(const csVector3 &offset, iMeshWrapper *posAttach, bool rotateWithMesh=false)
Creates the effect anchor.
bool Update(csTicks elapsed)
Updates the effect anchor – called every frame.
bool Load(iDocumentNode *node)
Loads the effect anchors from an xml node.
Effect anchors provide a base location / anchor point for all effect objs.