Click or drag to resize
TetrapodCharacterizationTemplateTryDistributeMassAlongChain Method
Tries to distribute the supplied mass to all bodies in the supplied list.

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
protected bool TryDistributeMassAlongChain(
	List<RagdollPart> bodies,
	float mass,
	float centerOfMass
)

Parameters

bodies
Type: System.Collections.GenericListRagdollPart
Bodies.
mass
Type: SystemSingle
Mass.
centerOfMass
Type: SystemSingle
A parameter value for the center of mass, which is the percentage of the length of the chain. A value of 0 is ignored and interpreted as even distribution.

Return Value

Type: Boolean
if mass was assigned to at least one body in the list; otherwise, .
See Also