MeshExt.GetBoneInfluenceBounds Method

Computes the bounding box that contains all the vertices that a bone has influence on in a skinned mesh. The bounding box is computed in local bone space.

Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Bounds GetBoneInfluenceBounds(
	SkinnedMeshRenderer skin,
	Transform bone,
	float weightThreshold = 0.5f
)

Parameters

 

skin
Type: SkinnedMeshRenderer
Skinned mesh
bone
Type: Transform
Bone to check
weightThreshold (Optional)
Type: System.Single
Weight above which to consider significant influence

Return Value

Type: Bounds
Bounding box in local bone coordinates.

See Also

Reference

MeshExt Class
UltimateXR.Extensions.Unity.Render Namespace