Table of Contents

Class SkeletonProfile

Namespace
WitShells.WitPose

ScriptableObject database storing standard human anatomical limits. Provides default constraint values for different body types and age groups.

public class SkeletonProfile : ScriptableObject
Inheritance
SkeletonProfile

Fields

ageCategory

public SkeletonProfile.AgeCategory ageCategory

Field Value

SkeletonProfile.AgeCategory

bodyType

public SkeletonProfile.BodyType bodyType

Field Value

SkeletonProfile.BodyType

boneConstraints

public List<SkeletonProfile.BoneConstraint> boneConstraints

Field Value

List<SkeletonProfile.BoneConstraint>

defaultPropagationFactor

public float defaultPropagationFactor

Field Value

float

defaultStiffness

public float defaultStiffness

Field Value

float

description

public string description

Field Value

string

profileName

public string profileName

Field Value

string

Methods

ApplyConstraints(HumanBodyBones, out Vector3, out Vector3, out float, out float)

Apply this profile's constraints to editor bone data

public void ApplyConstraints(HumanBodyBones boneId, out Vector3 minRotation, out Vector3 maxRotation, out float stiffness, out float propagationFactor)

Parameters

boneId HumanBodyBones
minRotation Vector3
maxRotation Vector3
stiffness float
propagationFactor float

GetConstraintForBone(HumanBodyBones)

Get constraint data for a specific bone

public SkeletonProfile.BoneConstraint GetConstraintForBone(HumanBodyBones boneId)

Parameters

boneId HumanBodyBones

Returns

SkeletonProfile.BoneConstraint

ResetToStandardHuman()

Create default profile with standard human constraints

public void ResetToStandardHuman()

ValidateProfile()

Validate that all required bones have constraints

public void ValidateProfile()