C# Class FSO.Vitaboy.Skeleton

Skeletons specify the network of bones that can be moved by an animation to bend the applied meshes of a rendered character. Skeletons also provide non-animated default translation and rotation values for each bone.
Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
Bones FSO.Vitaboy.Bone[]
Name string
RootBone Bone

Public Methods

Method Description
Clone ( ) : Skeleton

Clones this skeleton.

ComputeBonePositions ( Bone bone, Matrix world ) : void

Computes the absolute position for all the bones in this skeleton.

GetBone ( string name ) : Bone

Gets a bone from this Skeleton instance.

Read ( Stream stream ) : void

Reads a skeleton from a stream.

Private Methods

Method Description
ReadBone ( IoBuffer reader ) : Bone

Reads a bone from a IOBuffer.

Method Details

Clone() public method

Clones this skeleton.
public Clone ( ) : Skeleton
return Skeleton

ComputeBonePositions() public method

Computes the absolute position for all the bones in this skeleton.
public ComputeBonePositions ( Bone bone, Matrix world ) : void
bone Bone The bone to start with, should always be the ROOT bone.
world Matrix A world matrix to use in the calculation.
return void

GetBone() public method

Gets a bone from this Skeleton instance.
public GetBone ( string name ) : Bone
name string The name of a bone.
return Bone

Read() public method

Reads a skeleton from a stream.
public Read ( Stream stream ) : void
stream Stream A Stream instance holding a skeleton.
return void

Property Details

Bones public_oe property

public Bone[],FSO.Vitaboy Bones
return FSO.Vitaboy.Bone[]

Name public_oe property

public string Name
return string

RootBone public_oe property

public Bone,FSO.Vitaboy RootBone
return Bone