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 TypeMethodDescriptionvoidgetAnchorPoint(float[] val) Return the anchorPoint value in the argument float[]voidgetAxis1(float[] val) Return the axis1 value in the argument float[]voidgetAxis2(float[] val) Return the axis2 value in the argument float[]getBody1()Return the body1 X3DNode value.voidgetBody1AnchorPoint(float[] val) Return the body1AnchorPoint value in the argument float[]voidgetBody1Axis(float[] val) Return the body1Axis value in the argument float[]getBody2()Return the body2 X3DNode value.voidgetBody2AnchorPoint(float[] val) Return the body2AnchorPoint value in the argument float[]voidgetBody2Axis(float[] val) Return the body2Axis value in the argument float[]voidgetForceOutput(String[] val) Return the forceOutput value in the argument String[]intReturn the number of MFString items in the forceOutput field.floatReturn the stop1Bounce float value.floatReturn the stop1ErrorCorrection float value.floatReturn the stop2Bounce float value.floatReturn the stop2ErrorCorrection float value.voidsetAnchorPoint(float[] val) Set the anchorPoint field.voidsetAxis1(float[] val) Set the axis1 field.voidsetAxis2(float[] val) Set the axis2 field.voidSet the body1 field.voidSet the body2 field.voidsetForceOutput(String[] val) Set the forceOutput field.voidsetStop1Bounce(float val) Set the stop1Bounce field.voidsetStop1ErrorCorrection(float val) Set the stop1ErrorCorrection field.voidsetStop2Bounce(float val) Set the stop2Bounce field.voidsetStop2ErrorCorrection(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, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getNumForceOutputin interfaceX3DRigidJointNode- Returns:
- the number of MFString items in the forceOutput field.
-
getForceOutput
Return the forceOutput value in the argument String[]- Specified by:
getForceOutputin interfaceX3DRigidJointNode- Parameters:
val- The String[] to initialize.
-
setForceOutput
Set the forceOutput field.- Specified by:
setForceOutputin interfaceX3DRigidJointNode- Parameters:
val- The String[] to set.
-
getBody1
Return the body1 X3DNode value.- Specified by:
getBody1in interfaceX3DRigidJointNode- Returns:
- The body1 X3DNode value.
-
setBody1
Set the body1 field.- Specified by:
setBody1in interfaceX3DRigidJointNode- Parameters:
val- The X3DNode to set.
-
getBody2
Return the body2 X3DNode value.- Specified by:
getBody2in interfaceX3DRigidJointNode- Returns:
- The body2 X3DNode value.
-
setBody2
Set the body2 field.- Specified by:
setBody2in interfaceX3DRigidJointNode- Parameters:
val- The X3DNode to set.
-
getAnchorPoint
public void getAnchorPoint(float[] val) Return the anchorPoint value in the argument float[]- Specified by:
getAnchorPointin interfaceUniversalJoint- Parameters:
val- The float[] to initialize.
-
setAnchorPoint
public void setAnchorPoint(float[] val) Set the anchorPoint field.- Specified by:
setAnchorPointin interfaceUniversalJoint- Parameters:
val- The float[] to set.
-
getAxis1
public void getAxis1(float[] val) Return the axis1 value in the argument float[]- Specified by:
getAxis1in interfaceUniversalJoint- Parameters:
val- The float[] to initialize.
-
setAxis1
public void setAxis1(float[] val) Set the axis1 field.- Specified by:
setAxis1in interfaceUniversalJoint- Parameters:
val- The float[] to set.
-
getAxis2
public void getAxis2(float[] val) Return the axis2 value in the argument float[]- Specified by:
getAxis2in interfaceUniversalJoint- Parameters:
val- The float[] to initialize.
-
setAxis2
public void setAxis2(float[] val) Set the axis2 field.- Specified by:
setAxis2in interfaceUniversalJoint- Parameters:
val- The float[] to set.
-
getBody1AnchorPoint
public void getBody1AnchorPoint(float[] val) Return the body1AnchorPoint value in the argument float[]- Specified by:
getBody1AnchorPointin interfaceUniversalJoint- Parameters:
val- The float[] to initialize.
-
getBody2AnchorPoint
public void getBody2AnchorPoint(float[] val) Return the body2AnchorPoint value in the argument float[]- Specified by:
getBody2AnchorPointin interfaceUniversalJoint- Parameters:
val- The float[] to initialize.
-
getBody1Axis
public void getBody1Axis(float[] val) Return the body1Axis value in the argument float[]- Specified by:
getBody1Axisin interfaceUniversalJoint- Parameters:
val- The float[] to initialize.
-
getBody2Axis
public void getBody2Axis(float[] val) Return the body2Axis value in the argument float[]- Specified by:
getBody2Axisin interfaceUniversalJoint- Parameters:
val- The float[] to initialize.
-
getStop1Bounce
public float getStop1Bounce()Return the stop1Bounce float value.- Specified by:
getStop1Bouncein interfaceUniversalJoint- Returns:
- The stop1Bounce float value.
-
setStop1Bounce
public void setStop1Bounce(float val) Set the stop1Bounce field.- Specified by:
setStop1Bouncein interfaceUniversalJoint- Parameters:
val- The float to set.
-
getStop2Bounce
public float getStop2Bounce()Return the stop2Bounce float value.- Specified by:
getStop2Bouncein interfaceUniversalJoint- Returns:
- The stop2Bounce float value.
-
setStop2Bounce
public void setStop2Bounce(float val) Set the stop2Bounce field.- Specified by:
setStop2Bouncein interfaceUniversalJoint- Parameters:
val- The float to set.
-
getStop1ErrorCorrection
public float getStop1ErrorCorrection()Return the stop1ErrorCorrection float value.- Specified by:
getStop1ErrorCorrectionin interfaceUniversalJoint- Returns:
- The stop1ErrorCorrection float value.
-
setStop1ErrorCorrection
public void setStop1ErrorCorrection(float val) Set the stop1ErrorCorrection field.- Specified by:
setStop1ErrorCorrectionin interfaceUniversalJoint- Parameters:
val- The float to set.
-
getStop2ErrorCorrection
public float getStop2ErrorCorrection()Return the stop2ErrorCorrection float value.- Specified by:
getStop2ErrorCorrectionin interfaceUniversalJoint- Returns:
- The stop2ErrorCorrection float value.
-
setStop2ErrorCorrection
public void setStop2ErrorCorrection(float val) Set the stop2ErrorCorrection field.- Specified by:
setStop2ErrorCorrectionin interfaceUniversalJoint- Parameters:
val- The float to set.
-