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.
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Свойство Type Description
Bones FSO.Vitaboy.Bone[]
Name string
RootBone Bone

Méthodes publiques

Méthode 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

Méthode Description
ReadBone ( IoBuffer reader ) : Bone

Reads a bone from a IOBuffer.

Method Details

Clone() public méthode

Clones this skeleton.
public Clone ( ) : Skeleton
Résultat Skeleton

ComputeBonePositions() public méthode

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.
Résultat void

GetBone() public méthode

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

Read() public méthode

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

Property Details

Bones public_oe property

public Bone[],FSO.Vitaboy Bones
Résultat FSO.Vitaboy.Bone[]

Name public_oe property

public string Name
Résultat string

RootBone public_oe property

public Bone,FSO.Vitaboy RootBone
Résultat Bone