Class SAIMotorJoint
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.rigidbodyphysics.SAIMotorJoint
- All Implemented Interfaces:
MotorJoint,X3DNode,X3DRigidJointNode
A concrete implementation of the MotorJoint node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIMotorJoint(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the autoCalc boolean value.floatReturn the axis1Angle float value.floatReturn the axis1Torque float value.floatReturn the axis2Angle float value.floatReturn the axis2Torque float value.floatReturn the axis3Angle float value.floatReturn the axis3Torque float value.getBody1()Return the body1 X3DNode value.getBody2()Return the body2 X3DNode value.intReturn the enabledAxes int value.voidgetForceOutput(String[] val) Return the forceOutput value in the argument String[]floatReturn the motor1Angle float value.floatReturn the motor1AngleRate float value.voidgetMotor1Axis(float[] val) Return the motor1Axis value in the argument float[]floatReturn the motor2Angle float value.floatReturn the motor2AngleRate float value.voidgetMotor2Axis(float[] val) Return the motor2Axis value in the argument float[]floatReturn the motor3Angle float value.floatReturn the motor3AngleRate float value.voidgetMotor3Axis(float[] val) Return the motor3Axis value in the argument float[]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.floatReturn the stop3Bounce float value.floatReturn the stop3ErrorCorrection float value.voidsetAutoCalc(boolean val) Set the autoCalc field.voidsetAxis1Angle(float val) Set the axis1Angle field.voidsetAxis1Torque(float val) Set the axis1Torque field.voidsetAxis2Angle(float val) Set the axis2Angle field.voidsetAxis2Torque(float val) Set the axis2Torque field.voidsetAxis3Angle(float val) Set the axis3Angle field.voidsetAxis3Torque(float val) Set the axis3Torque field.voidSet the body1 field.voidSet the body2 field.voidsetEnabledAxes(int val) Set the enabledAxes field.voidsetForceOutput(String[] val) Set the forceOutput field.voidsetMotor1Axis(float[] val) Set the motor1Axis field.voidsetMotor2Axis(float[] val) Set the motor2Axis field.voidsetMotor3Axis(float[] val) Set the motor3Axis 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.voidsetStop3Bounce(float val) Set the stop3Bounce field.voidsetStop3ErrorCorrection(float val) Set the stop3ErrorCorrection 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
-
SAIMotorJoint
public SAIMotorJoint(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.
-
getAutoCalc
public boolean getAutoCalc()Return the autoCalc boolean value.- Specified by:
getAutoCalcin interfaceMotorJoint- Returns:
- The autoCalc boolean value.
-
setAutoCalc
public void setAutoCalc(boolean val) Set the autoCalc field.- Specified by:
setAutoCalcin interfaceMotorJoint- Parameters:
val- The boolean to set.
-
getMotor1Axis
public void getMotor1Axis(float[] val) Return the motor1Axis value in the argument float[]- Specified by:
getMotor1Axisin interfaceMotorJoint- Parameters:
val- The float[] to initialize.
-
setMotor1Axis
public void setMotor1Axis(float[] val) Set the motor1Axis field.- Specified by:
setMotor1Axisin interfaceMotorJoint- Parameters:
val- The float[] to set.
-
getMotor2Axis
public void getMotor2Axis(float[] val) Return the motor2Axis value in the argument float[]- Specified by:
getMotor2Axisin interfaceMotorJoint- Parameters:
val- The float[] to initialize.
-
setMotor2Axis
public void setMotor2Axis(float[] val) Set the motor2Axis field.- Specified by:
setMotor2Axisin interfaceMotorJoint- Parameters:
val- The float[] to set.
-
getMotor3Axis
public void getMotor3Axis(float[] val) Return the motor3Axis value in the argument float[]- Specified by:
getMotor3Axisin interfaceMotorJoint- Parameters:
val- The float[] to initialize.
-
setMotor3Axis
public void setMotor3Axis(float[] val) Set the motor3Axis field.- Specified by:
setMotor3Axisin interfaceMotorJoint- Parameters:
val- The float[] to set.
-
getAxis1Angle
public float getAxis1Angle()Return the axis1Angle float value.- Specified by:
getAxis1Anglein interfaceMotorJoint- Returns:
- The axis1Angle float value.
-
setAxis1Angle
public void setAxis1Angle(float val) Set the axis1Angle field.- Specified by:
setAxis1Anglein interfaceMotorJoint- Parameters:
val- The float to set.
-
getAxis2Angle
public float getAxis2Angle()Return the axis2Angle float value.- Specified by:
getAxis2Anglein interfaceMotorJoint- Returns:
- The axis2Angle float value.
-
setAxis2Angle
public void setAxis2Angle(float val) Set the axis2Angle field.- Specified by:
setAxis2Anglein interfaceMotorJoint- Parameters:
val- The float to set.
-
getAxis3Angle
public float getAxis3Angle()Return the axis3Angle float value.- Specified by:
getAxis3Anglein interfaceMotorJoint- Returns:
- The axis3Angle float value.
-
setAxis3Angle
public void setAxis3Angle(float val) Set the axis3Angle field.- Specified by:
setAxis3Anglein interfaceMotorJoint- Parameters:
val- The float to set.
-
getStop1Bounce
public float getStop1Bounce()Return the stop1Bounce float value.- Specified by:
getStop1Bouncein interfaceMotorJoint- Returns:
- The stop1Bounce float value.
-
setStop1Bounce
public void setStop1Bounce(float val) Set the stop1Bounce field.- Specified by:
setStop1Bouncein interfaceMotorJoint- Parameters:
val- The float to set.
-
getStop2Bounce
public float getStop2Bounce()Return the stop2Bounce float value.- Specified by:
getStop2Bouncein interfaceMotorJoint- Returns:
- The stop2Bounce float value.
-
setStop2Bounce
public void setStop2Bounce(float val) Set the stop2Bounce field.- Specified by:
setStop2Bouncein interfaceMotorJoint- Parameters:
val- The float to set.
-
getStop3Bounce
public float getStop3Bounce()Return the stop3Bounce float value.- Specified by:
getStop3Bouncein interfaceMotorJoint- Returns:
- The stop3Bounce float value.
-
setStop3Bounce
public void setStop3Bounce(float val) Set the stop3Bounce field.- Specified by:
setStop3Bouncein interfaceMotorJoint- Parameters:
val- The float to set.
-
getAxis1Torque
public float getAxis1Torque()Return the axis1Torque float value.- Specified by:
getAxis1Torquein interfaceMotorJoint- Returns:
- The axis1Torque float value.
-
setAxis1Torque
public void setAxis1Torque(float val) Set the axis1Torque field.- Specified by:
setAxis1Torquein interfaceMotorJoint- Parameters:
val- The float to set.
-
getAxis2Torque
public float getAxis2Torque()Return the axis2Torque float value.- Specified by:
getAxis2Torquein interfaceMotorJoint- Returns:
- The axis2Torque float value.
-
setAxis2Torque
public void setAxis2Torque(float val) Set the axis2Torque field.- Specified by:
setAxis2Torquein interfaceMotorJoint- Parameters:
val- The float to set.
-
getAxis3Torque
public float getAxis3Torque()Return the axis3Torque float value.- Specified by:
getAxis3Torquein interfaceMotorJoint- Returns:
- The axis3Torque float value.
-
setAxis3Torque
public void setAxis3Torque(float val) Set the axis3Torque field.- Specified by:
setAxis3Torquein interfaceMotorJoint- Parameters:
val- The float to set.
-
getMotor1Angle
public float getMotor1Angle()Return the motor1Angle float value.- Specified by:
getMotor1Anglein interfaceMotorJoint- Returns:
- The motor1Angle float value.
-
getMotor2Angle
public float getMotor2Angle()Return the motor2Angle float value.- Specified by:
getMotor2Anglein interfaceMotorJoint- Returns:
- The motor2Angle float value.
-
getMotor3Angle
public float getMotor3Angle()Return the motor3Angle float value.- Specified by:
getMotor3Anglein interfaceMotorJoint- Returns:
- The motor3Angle float value.
-
getMotor1AngleRate
public float getMotor1AngleRate()Return the motor1AngleRate float value.- Specified by:
getMotor1AngleRatein interfaceMotorJoint- Returns:
- The motor1AngleRate float value.
-
getMotor2AngleRate
public float getMotor2AngleRate()Return the motor2AngleRate float value.- Specified by:
getMotor2AngleRatein interfaceMotorJoint- Returns:
- The motor2AngleRate float value.
-
getMotor3AngleRate
public float getMotor3AngleRate()Return the motor3AngleRate float value.- Specified by:
getMotor3AngleRatein interfaceMotorJoint- Returns:
- The motor3AngleRate float value.
-
getStop1ErrorCorrection
public float getStop1ErrorCorrection()Return the stop1ErrorCorrection float value.- Specified by:
getStop1ErrorCorrectionin interfaceMotorJoint- Returns:
- The stop1ErrorCorrection float value.
-
setStop1ErrorCorrection
public void setStop1ErrorCorrection(float val) Set the stop1ErrorCorrection field.- Specified by:
setStop1ErrorCorrectionin interfaceMotorJoint- Parameters:
val- The float to set.
-
getStop2ErrorCorrection
public float getStop2ErrorCorrection()Return the stop2ErrorCorrection float value.- Specified by:
getStop2ErrorCorrectionin interfaceMotorJoint- Returns:
- The stop2ErrorCorrection float value.
-
setStop2ErrorCorrection
public void setStop2ErrorCorrection(float val) Set the stop2ErrorCorrection field.- Specified by:
setStop2ErrorCorrectionin interfaceMotorJoint- Parameters:
val- The float to set.
-
getStop3ErrorCorrection
public float getStop3ErrorCorrection()Return the stop3ErrorCorrection float value.- Specified by:
getStop3ErrorCorrectionin interfaceMotorJoint- Returns:
- The stop3ErrorCorrection float value.
-
setStop3ErrorCorrection
public void setStop3ErrorCorrection(float val) Set the stop3ErrorCorrection field.- Specified by:
setStop3ErrorCorrectionin interfaceMotorJoint- Parameters:
val- The float to set.
-
getEnabledAxes
public int getEnabledAxes()Return the enabledAxes int value.- Specified by:
getEnabledAxesin interfaceMotorJoint- Returns:
- The enabledAxes int value.
-
setEnabledAxes
public void setEnabledAxes(int val) Set the enabledAxes field.- Specified by:
setEnabledAxesin interfaceMotorJoint- Parameters:
val- The int to set.
-