Click or drag to resize
TetrapodCharacterizationTemplateTryDistributeNeckMass Method
Tries to distribute the neck mass. Override this method if you need to interpret the center of mass differently.

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
protected virtual bool TryDistributeNeckMass(
	RagdollPartChain neck,
	float chainMass,
	float centerOfMass,
	List<RagdollPart> allParts
)

Parameters

neck
Type: Candlelight.PhysicsRagdollPartChain
Neck.
chainMass
Type: SystemSingle
Mass of the neck chain.
centerOfMass
Type: SystemSingle
A parameter value for the center of mass. By default this value is interpreted as a percentage of the length of the chain.
allParts
Type: System.Collections.GenericListRagdollPart
All the parts in the hierarchy.

Return Value

Type: Boolean
if neck mass was assigned; otherwise, .
See Also