Click or drag to resize
TetrapodCharacterizationTemplateTrySetJointAxesFromTetrapodLocalVectors Method
Sets the joint axes for the supplied part using the supplied axis in the tetrapod's local space.

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
protected bool TrySetJointAxesFromTetrapodLocalVectors(
	TetrapodRagdoll tetrapod,
	RagdollPart part,
	Vector3 axis,
	Vector3 secondaryAxis,
	bool cardinalizePrimary = true,
	bool cardinalizeSecondary = true
)

Parameters

tetrapod
Type: Candlelight.PhysicsTetrapodRagdoll
A TetrapodRagdoll that is fully connected and symmetry mapped.
part
Type: Candlelight.PhysicsRagdollPart
Part.
axis
Type: Vector3
Axis.
secondaryAxis
Type: Vector3
Secondary axis.
cardinalizePrimary (Optional)
Type: SystemBoolean
If , then set primary axis to nearest cardinal axis.
cardinalizeSecondary (Optional)
Type: SystemBoolean
If , then set secondary axis to nearest cardinal axis.

Return Value

Type: Boolean
if the axes were applied; otherwise, .
See Also