C# Класс IrrlichtNETCP.AnimatedMeshSceneNode

Наследование: SceneNode
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnNativeAnimationEnd ( IntPtr node ) : void

Приватные методы

Метод Описание
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

Описание методов

AddShadowVolumeSceneNode() публичный Метод

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
Результат IrrlichtNETCP.ShadowVolumeSceneNode

AnimateJoints() публичный Метод

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 ///
Результат void

AnimatedMeshSceneNode() публичный Метод

public AnimatedMeshSceneNode ( IntPtr raw ) : System
raw System.IntPtr
Результат System

GetJointNode() публичный Метод

Get Bone depending of the name
public GetJointNode ( string name ) : BoneSceneNode
name string /// A name of the node ///
Результат BoneSceneNode

GetJointNode() публичный Метод

Get Bone depending of the id
public GetJointNode ( uint index ) : BoneSceneNode
index uint /// An id of the node ///
Результат BoneSceneNode

GetMS3DJointNode() публичный Метод

Retrieves the MS3D Joint node whose name is [jointName]
public GetMS3DJointNode ( string jointName ) : SceneNode
jointName string Name of the node
Результат SceneNode

GetXJointNode() публичный Метод

Retrieves the X Joint node whose name is [jointName]
public GetXJointNode ( string jointName ) : SceneNode
jointName string Name of the node
Результат SceneNode

OnNativeAnimationEnd() защищенный Метод

protected OnNativeAnimationEnd ( IntPtr node ) : void
node System.IntPtr
Результат void

SetFrameLoop() публичный Метод

Sets the animation loop between these two frames
public SetFrameLoop ( int start, int end ) : void
start int Starting frame
end int Ending frame
Результат void

SetMD2Animation() публичный Метод

Sets the current MD2 animation
public SetMD2Animation ( MD2Animation anim ) : void
anim MD2Animation Animation
Результат void

SetMD2Animation() публичный Метод

Sets the current MD2 animation
public SetMD2Animation ( string animationname ) : void
animationname string Animation name (please refer to Irrlicht's documentation)
Результат void