Class SAISingleAxisHingeJoint
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAISingleAxisHingeJoint
- All Implemented Interfaces:
SingleAxisHingeJoint
,X3DNode
,X3DRigidJointNode
A concrete implementation of the SingleAxisHingeJoint node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAISingleAxisHingeJoint
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAnchorPoint
(float[] val) Return the anchorPoint value in the argument float[]float
getAngle()
Return the angle float value.float
Return the angleRate float value.void
getAxis
(float[] val) Return the Axis value in the argument float[]getBody1()
Return the body1 X3DNode value.void
getBody1AnchorPoint
(float[] val) Return the body1AnchorPoint value in the argument float[]getBody2()
Return the body2 X3DNode value.void
getBody2AnchorPoint
(float[] val) Return the body2AnchorPoint value in the argument float[]void
getForceOutput
(String[] val) Return the forceOutput value in the argument String[]float
Return the maxAngle float value.float
Return the minAngle float value.int
Return the number of MFString items in the forceOutput field.float
Return the stopBounce float value.float
Return the stopErrorCorrection float value.void
setAnchorPoint
(float[] val) Set the anchorPoint field.void
setAxis
(float[] val) Set the Axis field.void
Set the body1 field.void
Set the body2 field.void
setForceOutput
(String[] val) Set the forceOutput field.void
setMaxAngle
(float val) Set the maxAngle field.void
setMinAngle
(float val) Set the minAngle field.void
setStopBounce
(float val) Set the stopBounce field.void
setStopErrorCorrection
(float val) Set the stopErrorCorrection field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAISingleAxisHingeJoint
public SAISingleAxisHingeJoint(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getNumForceOutput
public int getNumForceOutput()Return the number of MFString items in the forceOutput field.- Specified by:
getNumForceOutput
in interfaceX3DRigidJointNode
- Returns:
- the number of MFString items in the forceOutput field.
-
getForceOutput
Return the forceOutput value in the argument String[]- Specified by:
getForceOutput
in interfaceX3DRigidJointNode
- Parameters:
val
- The String[] to initialize.
-
setForceOutput
Set the forceOutput field.- Specified by:
setForceOutput
in interfaceX3DRigidJointNode
- Parameters:
val
- The String[] to set.
-
getBody1
Return the body1 X3DNode value.- Specified by:
getBody1
in interfaceX3DRigidJointNode
- Returns:
- The body1 X3DNode value.
-
setBody1
Set the body1 field.- Specified by:
setBody1
in interfaceX3DRigidJointNode
- Parameters:
val
- The X3DNode to set.
-
getBody2
Return the body2 X3DNode value.- Specified by:
getBody2
in interfaceX3DRigidJointNode
- Returns:
- The body2 X3DNode value.
-
setBody2
Set the body2 field.- Specified by:
setBody2
in interfaceX3DRigidJointNode
- Parameters:
val
- The X3DNode to set.
-
getAnchorPoint
public void getAnchorPoint(float[] val) Return the anchorPoint value in the argument float[]- Specified by:
getAnchorPoint
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float[] to initialize.
-
setAnchorPoint
public void setAnchorPoint(float[] val) Set the anchorPoint field.- Specified by:
setAnchorPoint
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float[] to set.
-
getBody1AnchorPoint
public void getBody1AnchorPoint(float[] val) Return the body1AnchorPoint value in the argument float[]- Specified by:
getBody1AnchorPoint
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float[] to initialize.
-
getBody2AnchorPoint
public void getBody2AnchorPoint(float[] val) Return the body2AnchorPoint value in the argument float[]- Specified by:
getBody2AnchorPoint
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float[] to initialize.
-
getAxis
public void getAxis(float[] val) Return the Axis value in the argument float[]- Specified by:
getAxis
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float[] to initialize.
-
setAxis
public void setAxis(float[] val) Set the Axis field.- Specified by:
setAxis
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float[] to set.
-
getMinAngle
public float getMinAngle()Return the minAngle float value.- Specified by:
getMinAngle
in interfaceSingleAxisHingeJoint
- Returns:
- The minAngle float value.
-
setMinAngle
public void setMinAngle(float val) Set the minAngle field.- Specified by:
setMinAngle
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float to set.
-
getMaxAngle
public float getMaxAngle()Return the maxAngle float value.- Specified by:
getMaxAngle
in interfaceSingleAxisHingeJoint
- Returns:
- The maxAngle float value.
-
setMaxAngle
public void setMaxAngle(float val) Set the maxAngle field.- Specified by:
setMaxAngle
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float to set.
-
getAngle
public float getAngle()Return the angle float value.- Specified by:
getAngle
in interfaceSingleAxisHingeJoint
- Returns:
- The angle float value.
-
getAngleRate
public float getAngleRate()Return the angleRate float value.- Specified by:
getAngleRate
in interfaceSingleAxisHingeJoint
- Returns:
- The angleRate float value.
-
getStopBounce
public float getStopBounce()Return the stopBounce float value.- Specified by:
getStopBounce
in interfaceSingleAxisHingeJoint
- Returns:
- The stopBounce float value.
-
setStopBounce
public void setStopBounce(float val) Set the stopBounce field.- Specified by:
setStopBounce
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float to set.
-
getStopErrorCorrection
public float getStopErrorCorrection()Return the stopErrorCorrection float value.- Specified by:
getStopErrorCorrection
in interfaceSingleAxisHingeJoint
- Returns:
- The stopErrorCorrection float value.
-
setStopErrorCorrection
public void setStopErrorCorrection(float val) Set the stopErrorCorrection field.- Specified by:
setStopErrorCorrection
in interfaceSingleAxisHingeJoint
- Parameters:
val
- The float to set.
-