 | TetrapodCharacterizationTemplateTryDistributeMassAlongChain Method |
Tries to distribute the supplied mass to all bodies in the supplied list.
Namespace: Candlelight.PhysicsAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxprotected 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