Skin
A list of inverse bind poses and corresponding bones.
A list of inverse bind poses and corresponding bones.
Skin contains a list of bind pose matrices and a list of either bone names if bones are named, or bone indices if bones are not named. The bind pose matrix, also called offset matrix or inverse bind matrix, is a Transform3D offset that is multiplied with a bone's transform to get from vertex space to bone space.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
SkinConstructor
public Skin();Methods11
AddBindvoid
public void AddBind(int bone, Transform3D pose);Adds a bind pose matrix of pose and associated bone index bone to the bind pose list and increases the bind count by 1.
| Name | Type | Default |
|---|---|---|
bone | int | — |
pose | Transform3D | — |
AddNamedBindvoid
public void AddNamedBind(string name, Transform3D pose);Like Skin.AddBind but adds a bone name instead of a bone index.
| Name | Type | Default |
|---|---|---|
name | string | — |
pose | Transform3D | — |
ClearBindsvoid
public void ClearBinds();Clears the bind pose list.
GetBindBoneint
public int GetBindBone(int bindIndex);Returns the bone index associated with bind pose bind_index.
| Name | Type | Default |
|---|---|---|
bindIndex | int | — |
intGetBindCountint
public int GetBindCount();Returns the length of the bind pose list.
intGetBindNameStringName
public StringName GetBindName(int bindIndex);Returns the bone name associated with bind pose bind_index.
| Name | Type | Default |
|---|---|---|
bindIndex | int | — |
StringNameGetBindPoseTransform3D
public Transform3D GetBindPose(int bindIndex);Returns the bind pose matrix at bind_index.
| Name | Type | Default |
|---|---|---|
bindIndex | int | — |
Transform3DSetBindBonevoid
public void SetBindBone(int bindIndex, int bone);Sets the bone index of bind pose bind_index to the given index bone.
| Name | Type | Default |
|---|---|---|
bindIndex | int | — |
bone | int | — |
SetBindCountvoid
public void SetBindCount(int bindCount);Resizes the bind pose list to a length of bind_count.
| Name | Type | Default |
|---|---|---|
bindCount | int | — |
SetBindNamevoid
public void SetBindName(int bindIndex, StringName name);Sets the name of the bone in bind pose bind_index to name.
| Name | Type | Default |
|---|---|---|
bindIndex | int | — |
name | StringName | — |
SetBindPosevoid
public void SetBindPose(int bindIndex, Transform3D pose);Sets the bind pose bind_index with the given offset matrix pose.
| Name | Type | Default |
|---|---|---|
bindIndex | int | — |
pose | Transform3D | — |