protected class RagdollPreset.JointPreset
extends java.lang.Object
| Constructor and Description |
|---|
JointPreset()
Instantiate a preset with no motion allowed.
|
JointPreset(float maxX,
float minX,
float maxY,
float minY,
float maxZ,
float minZ)
Instantiate a preset with the specified range of motion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setupJoint(SixDofJoint joint)
Apply this preset to the specified joint.
|
public JointPreset()
public JointPreset(float maxX,
float minX,
float maxY,
float minY,
float maxZ,
float minZ)
maxX - the maximum rotation on the X axis (in radians)minX - the minimum rotation on the X axis (in radians)maxY - the maximum rotation on the Y axis (in radians)minY - the minimum rotation on the Y axis (in radians)maxZ - the maximum rotation on the Z axis (in radians)minZ - the minimum rotation on the Z axis (in radians)public void setupJoint(SixDofJoint joint)
joint - where to apply (not null, modified)