Class SkeletonProfile
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
bodyType
public SkeletonProfile.BodyType bodyType
Field Value
boneConstraints
public List<SkeletonProfile.BoneConstraint> boneConstraints
Field Value
defaultPropagationFactor
public float defaultPropagationFactor
Field Value
defaultStiffness
public float defaultStiffness
Field Value
description
public string description
Field Value
profileName
public string profileName
Field Value
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
boneIdHumanBodyBonesminRotationVector3maxRotationVector3stiffnessfloatpropagationFactorfloat
GetConstraintForBone(HumanBodyBones)
Get constraint data for a specific bone
public SkeletonProfile.BoneConstraint GetConstraintForBone(HumanBodyBones boneId)
Parameters
boneIdHumanBodyBones
Returns
ResetToStandardHuman()
Create default profile with standard human constraints
public void ResetToStandardHuman()
ValidateProfile()
Validate that all required bones have constraints
public void ValidateProfile()