Class SAISliderJoint
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.rigidbodyphysics.SAISliderJoint
- All Implemented Interfaces:
SliderJoint
,X3DNode
,X3DRigidJointNode
A concrete implementation of the SliderJoint node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAISliderJoint
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAxis
(float[] val) Return the axis value in the argument float[]getBody1()
Return the body1 X3DNode value.getBody2()
Return the body2 X3DNode value.void
getForceOutput
(String[] val) Return the forceOutput value in the argument String[]float
Return the maxSeparation float value.float
Return the minSeparation float value.int
Return the number of MFString items in the forceOutput field.float
Return the separation float value.float
Return the separationRate float value.float
Return the stopBounce float value.float
Return the stopErrorCorrection float value.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
setMaxSeparation
(float val) Set the maxSeparation field.void
setMinSeparation
(float val) Set the minSeparation 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.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAISliderJoint
public SAISliderJoint(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
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.
-
getAxis
public void getAxis(float[] val) Return the axis value in the argument float[]- Specified by:
getAxis
in interfaceSliderJoint
- Parameters:
val
- The float[] to initialize.
-
setAxis
public void setAxis(float[] val) Set the axis field.- Specified by:
setAxis
in interfaceSliderJoint
- Parameters:
val
- The float[] to set.
-
getMinSeparation
public float getMinSeparation()Return the minSeparation float value.- Specified by:
getMinSeparation
in interfaceSliderJoint
- Returns:
- The minSeparation float value.
-
setMinSeparation
public void setMinSeparation(float val) Set the minSeparation field.- Specified by:
setMinSeparation
in interfaceSliderJoint
- Parameters:
val
- The float to set.
-
getMaxSeparation
public float getMaxSeparation()Return the maxSeparation float value.- Specified by:
getMaxSeparation
in interfaceSliderJoint
- Returns:
- The maxSeparation float value.
-
setMaxSeparation
public void setMaxSeparation(float val) Set the maxSeparation field.- Specified by:
setMaxSeparation
in interfaceSliderJoint
- Parameters:
val
- The float to set.
-
getSeparation
public float getSeparation()Return the separation float value.- Specified by:
getSeparation
in interfaceSliderJoint
- Returns:
- The separation float value.
-
getSeparationRate
public float getSeparationRate()Return the separationRate float value.- Specified by:
getSeparationRate
in interfaceSliderJoint
- Returns:
- The separationRate float value.
-
getStopBounce
public float getStopBounce()Return the stopBounce float value.- Specified by:
getStopBounce
in interfaceSliderJoint
- Returns:
- The stopBounce float value.
-
setStopBounce
public void setStopBounce(float val) Set the stopBounce field.- Specified by:
setStopBounce
in interfaceSliderJoint
- Parameters:
val
- The float to set.
-
getStopErrorCorrection
public float getStopErrorCorrection()Return the stopErrorCorrection float value.- Specified by:
getStopErrorCorrection
in interfaceSliderJoint
- Returns:
- The stopErrorCorrection float value.
-
setStopErrorCorrection
public void setStopErrorCorrection(float val) Set the stopErrorCorrection field.- Specified by:
setStopErrorCorrection
in interfaceSliderJoint
- Parameters:
val
- The float to set.
-