Class SAIUniversalJoint
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.rigidbodyphysics.SAIUniversalJoint
- All Implemented Interfaces:
UniversalJoint
,X3DNode
,X3DRigidJointNode
A concrete implementation of the UniversalJoint node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIUniversalJoint
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAnchorPoint
(float[] val) Return the anchorPoint value in the argument float[]void
getAxis1
(float[] val) Return the axis1 value in the argument float[]void
getAxis2
(float[] val) Return the axis2 value in the argument float[]getBody1()
Return the body1 X3DNode value.void
getBody1AnchorPoint
(float[] val) Return the body1AnchorPoint value in the argument float[]void
getBody1Axis
(float[] val) Return the body1Axis value in the argument float[]getBody2()
Return the body2 X3DNode value.void
getBody2AnchorPoint
(float[] val) Return the body2AnchorPoint value in the argument float[]void
getBody2Axis
(float[] val) Return the body2Axis value in the argument float[]void
getForceOutput
(String[] val) Return the forceOutput value in the argument String[]int
Return the number of MFString items in the forceOutput field.float
Return the stop1Bounce float value.float
Return the stop1ErrorCorrection float value.float
Return the stop2Bounce float value.float
Return the stop2ErrorCorrection float value.void
setAnchorPoint
(float[] val) Set the anchorPoint field.void
setAxis1
(float[] val) Set the axis1 field.void
setAxis2
(float[] val) Set the axis2 field.void
Set the body1 field.void
Set the body2 field.void
setForceOutput
(String[] val) Set the forceOutput field.void
setStop1Bounce
(float val) Set the stop1Bounce field.void
setStop1ErrorCorrection
(float val) Set the stop1ErrorCorrection field.void
setStop2Bounce
(float val) Set the stop2Bounce field.void
setStop2ErrorCorrection
(float val) Set the stop2ErrorCorrection 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
-
SAIUniversalJoint
public SAIUniversalJoint(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.
-
getAnchorPoint
public void getAnchorPoint(float[] val) Return the anchorPoint value in the argument float[]- Specified by:
getAnchorPoint
in interfaceUniversalJoint
- Parameters:
val
- The float[] to initialize.
-
setAnchorPoint
public void setAnchorPoint(float[] val) Set the anchorPoint field.- Specified by:
setAnchorPoint
in interfaceUniversalJoint
- Parameters:
val
- The float[] to set.
-
getAxis1
public void getAxis1(float[] val) Return the axis1 value in the argument float[]- Specified by:
getAxis1
in interfaceUniversalJoint
- Parameters:
val
- The float[] to initialize.
-
setAxis1
public void setAxis1(float[] val) Set the axis1 field.- Specified by:
setAxis1
in interfaceUniversalJoint
- Parameters:
val
- The float[] to set.
-
getAxis2
public void getAxis2(float[] val) Return the axis2 value in the argument float[]- Specified by:
getAxis2
in interfaceUniversalJoint
- Parameters:
val
- The float[] to initialize.
-
setAxis2
public void setAxis2(float[] val) Set the axis2 field.- Specified by:
setAxis2
in interfaceUniversalJoint
- Parameters:
val
- The float[] to set.
-
getBody1AnchorPoint
public void getBody1AnchorPoint(float[] val) Return the body1AnchorPoint value in the argument float[]- Specified by:
getBody1AnchorPoint
in interfaceUniversalJoint
- Parameters:
val
- The float[] to initialize.
-
getBody2AnchorPoint
public void getBody2AnchorPoint(float[] val) Return the body2AnchorPoint value in the argument float[]- Specified by:
getBody2AnchorPoint
in interfaceUniversalJoint
- Parameters:
val
- The float[] to initialize.
-
getBody1Axis
public void getBody1Axis(float[] val) Return the body1Axis value in the argument float[]- Specified by:
getBody1Axis
in interfaceUniversalJoint
- Parameters:
val
- The float[] to initialize.
-
getBody2Axis
public void getBody2Axis(float[] val) Return the body2Axis value in the argument float[]- Specified by:
getBody2Axis
in interfaceUniversalJoint
- Parameters:
val
- The float[] to initialize.
-
getStop1Bounce
public float getStop1Bounce()Return the stop1Bounce float value.- Specified by:
getStop1Bounce
in interfaceUniversalJoint
- Returns:
- The stop1Bounce float value.
-
setStop1Bounce
public void setStop1Bounce(float val) Set the stop1Bounce field.- Specified by:
setStop1Bounce
in interfaceUniversalJoint
- Parameters:
val
- The float to set.
-
getStop2Bounce
public float getStop2Bounce()Return the stop2Bounce float value.- Specified by:
getStop2Bounce
in interfaceUniversalJoint
- Returns:
- The stop2Bounce float value.
-
setStop2Bounce
public void setStop2Bounce(float val) Set the stop2Bounce field.- Specified by:
setStop2Bounce
in interfaceUniversalJoint
- Parameters:
val
- The float to set.
-
getStop1ErrorCorrection
public float getStop1ErrorCorrection()Return the stop1ErrorCorrection float value.- Specified by:
getStop1ErrorCorrection
in interfaceUniversalJoint
- Returns:
- The stop1ErrorCorrection float value.
-
setStop1ErrorCorrection
public void setStop1ErrorCorrection(float val) Set the stop1ErrorCorrection field.- Specified by:
setStop1ErrorCorrection
in interfaceUniversalJoint
- Parameters:
val
- The float to set.
-
getStop2ErrorCorrection
public float getStop2ErrorCorrection()Return the stop2ErrorCorrection float value.- Specified by:
getStop2ErrorCorrection
in interfaceUniversalJoint
- Returns:
- The stop2ErrorCorrection float value.
-
setStop2ErrorCorrection
public void setStop2ErrorCorrection(float val) Set the stop2ErrorCorrection field.- Specified by:
setStop2ErrorCorrection
in interfaceUniversalJoint
- Parameters:
val
- The float to set.
-