CrystalSpace

Public API Reference

CS::Animation::iSkeletonRagdollNodeFactory2 Struct Reference

Factory for the ragdoll animation node. More...

#include <imesh/animnode/ragdoll2.h>

Inheritance diagram for CS::Animation::iSkeletonRagdollNodeFactory2:

List of all members.

Public Member Functions

virtual void AddChain (iSkeletonChain *chain, RagdollState state=STATE_INACTIVE)=0
 Add a new body chain to the ragdoll animation node.
virtual iSkeletonAnimNodeFactoryGetChildNode () const =0
 Return the child animation node of this node.
virtual void RemoveChain (iSkeletonChain *chain)=0
 Remove the chain from the ragdoll animation node.
virtual void SetChildNode (iSkeletonAnimNodeFactory *node)=0
 Set the child animation node of this node.

Detailed Description

Factory for the ragdoll animation node.

Definition at line 89 of file ragdoll2.h.


Member Function Documentation

virtual void CS::Animation::iSkeletonRagdollNodeFactory2::AddChain ( iSkeletonChain chain,
RagdollState  state = STATE_INACTIVE 
) [pure virtual]

Add a new body chain to the ragdoll animation node.

The dynamic state of each body chain can be set separately.

Parameters:
state The initial state of the body chain.
virtual iSkeletonAnimNodeFactory* CS::Animation::iSkeletonRagdollNodeFactory2::GetChildNode (  )  const [pure virtual]

Return the child animation node of this node.

virtual void CS::Animation::iSkeletonRagdollNodeFactory2::RemoveChain ( iSkeletonChain chain  )  [pure virtual]

Remove the chain from the ragdoll animation node.

virtual void CS::Animation::iSkeletonRagdollNodeFactory2::SetChildNode ( iSkeletonAnimNodeFactory node  )  [pure virtual]

Set the child animation node of this node.

The ragdoll animation node will add its control on top of the animation of the child node. This child node is not mandatory.

The orientation/position values of the bones that are in state CS::Animation::STATE_INACTIVE or CS::Animation::STATE_KINEMATIC will be read from the child node, while the bones in state CS::Animation::STATE_DYNAMIC will be overwriten by this node.

It is valid to set a null reference as chid node.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1