C# Class IrrlichtNETCP.AnimatedMeshSceneNode

Inheritance: SceneNode
Mostrar archivo Open project: Paulus/irrlichtnetcp Class Usage Examples

Public Methods

Method Description
AddShadowVolumeSceneNode ( int ID, bool zfail, float infinity ) : IrrlichtNETCP.ShadowVolumeSceneNode

Adds a shadow to the node

AnimateJoints ( bool CalculateAbsolutePositions ) : void

animates the joints in the mesh based on the current frame (also takes in to account transitions)

AnimatedMeshSceneNode ( IntPtr raw ) : System
GetJointNode ( string name ) : BoneSceneNode

Get Bone depending of the name

GetJointNode ( uint index ) : BoneSceneNode

Get Bone depending of the id

GetMS3DJointNode ( string jointName ) : SceneNode

Retrieves the MS3D Joint node whose name is [jointName]

GetXJointNode ( string jointName ) : SceneNode

Retrieves the X Joint node whose name is [jointName]

SetFrameLoop ( int start, int end ) : void

Sets the animation loop between these two frames

SetMD2Animation ( MD2Animation anim ) : void

Sets the current MD2 animation

SetMD2Animation ( string animationname ) : void

Sets the current MD2 animation

Protected Methods

Method Description
OnNativeAnimationEnd ( IntPtr node ) : void

Private Methods

Method Description
AnimatedMeshSceneNode_AddShadowVolumeSceneNode ( IntPtr node, int ID, bool zfail, float infinity ) : IntPtr
AnimatedMeshSceneNode_AnimateJoints ( IntPtr node, bool calc ) : void
AnimatedMeshSceneNode_GetFrameNr ( IntPtr node ) : int
AnimatedMeshSceneNode_GetJointNode ( IntPtr node, uint jointn ) : IntPtr
AnimatedMeshSceneNode_GetJointNodeA ( IntPtr node, string name ) : IntPtr
AnimatedMeshSceneNode_GetMS3DJointNode ( IntPtr node, string jointName ) : IntPtr
AnimatedMeshSceneNode_GetMesh ( IntPtr node ) : IntPtr
AnimatedMeshSceneNode_GetXJointNode ( IntPtr node, string jointName ) : IntPtr
AnimatedMeshSceneNode_SetAnimationEndCallback ( IntPtr node, NativeAnimationEndDelegate callback ) : void
AnimatedMeshSceneNode_SetAnimationSpeed ( IntPtr node, int framePS ) : void
AnimatedMeshSceneNode_SetCurrentFrame ( IntPtr node, int cf ) : void
AnimatedMeshSceneNode_SetFrameLoop ( IntPtr node, int start, int end ) : void
AnimatedMeshSceneNode_SetJointMode ( IntPtr node, int mode ) : void
AnimatedMeshSceneNode_SetLoopMode ( IntPtr node, bool animationLooped ) : void
AnimatedMeshSceneNode_SetMD2Animation ( IntPtr node, string animationname ) : void
AnimatedMeshSceneNode_SetMD2AnimationA ( IntPtr node, MD2Animation anim ) : void

Method Details

AddShadowVolumeSceneNode() public method

Adds a shadow to the node
public AddShadowVolumeSceneNode ( int ID, bool zfail, float infinity ) : IrrlichtNETCP.ShadowVolumeSceneNode
ID int ID of the shadow, I advice -1 for automatic assignation
zfail bool Shall we use zfail ? (in fact it is not really implemented but I advice "true")
infinity float Infinity, I advice 10000f
return IrrlichtNETCP.ShadowVolumeSceneNode

AnimateJoints() public method

animates the joints in the mesh based on the current frame (also takes in to account transitions)
public AnimateJoints ( bool CalculateAbsolutePositions ) : void
CalculateAbsolutePositions bool /// Should positions be calculated according global axis ///
return void

AnimatedMeshSceneNode() public method

public AnimatedMeshSceneNode ( IntPtr raw ) : System
raw System.IntPtr
return System

GetJointNode() public method

Get Bone depending of the name
public GetJointNode ( string name ) : BoneSceneNode
name string /// A name of the node ///
return BoneSceneNode

GetJointNode() public method

Get Bone depending of the id
public GetJointNode ( uint index ) : BoneSceneNode
index uint /// An id of the node ///
return BoneSceneNode

GetMS3DJointNode() public method

Retrieves the MS3D Joint node whose name is [jointName]
public GetMS3DJointNode ( string jointName ) : SceneNode
jointName string Name of the node
return SceneNode

GetXJointNode() public method

Retrieves the X Joint node whose name is [jointName]
public GetXJointNode ( string jointName ) : SceneNode
jointName string Name of the node
return SceneNode

OnNativeAnimationEnd() protected method

protected OnNativeAnimationEnd ( IntPtr node ) : void
node System.IntPtr
return void

SetFrameLoop() public method

Sets the animation loop between these two frames
public SetFrameLoop ( int start, int end ) : void
start int Starting frame
end int Ending frame
return void

SetMD2Animation() public method

Sets the current MD2 animation
public SetMD2Animation ( MD2Animation anim ) : void
anim MD2Animation Animation
return void

SetMD2Animation() public method

Sets the current MD2 animation
public SetMD2Animation ( string animationname ) : void
animationname string Animation name (please refer to Irrlicht's documentation)
return void