Class SAIMotorJoint
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAIMotorJoint
- All Implemented Interfaces:
MotorJoint
,X3DNode
,X3DRigidJointNode
A concrete implementation of the MotorJoint 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
ConstructorsConstructorDescriptionSAIMotorJoint
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the autoCalc boolean value.float
Return the axis1Angle float value.float
Return the axis1Torque float value.float
Return the axis2Angle float value.float
Return the axis2Torque float value.float
Return the axis3Angle float value.float
Return the axis3Torque float value.getBody1()
Return the body1 X3DNode value.getBody2()
Return the body2 X3DNode value.int
Return the enabledAxes int value.void
getForceOutput
(String[] val) Return the forceOutput value in the argument String[]float
Return the motor1Angle float value.float
Return the motor1AngleRate float value.void
getMotor1Axis
(float[] val) Return the motor1Axis value in the argument float[]float
Return the motor2Angle float value.float
Return the motor2AngleRate float value.void
getMotor2Axis
(float[] val) Return the motor2Axis value in the argument float[]float
Return the motor3Angle float value.float
Return the motor3AngleRate float value.void
getMotor3Axis
(float[] val) Return the motor3Axis value in the argument float[]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.float
Return the stop3Bounce float value.float
Return the stop3ErrorCorrection float value.void
setAutoCalc
(boolean val) Set the autoCalc field.void
setAxis1Angle
(float val) Set the axis1Angle field.void
setAxis1Torque
(float val) Set the axis1Torque field.void
setAxis2Angle
(float val) Set the axis2Angle field.void
setAxis2Torque
(float val) Set the axis2Torque field.void
setAxis3Angle
(float val) Set the axis3Angle field.void
setAxis3Torque
(float val) Set the axis3Torque field.void
Set the body1 field.void
Set the body2 field.void
setEnabledAxes
(int val) Set the enabledAxes field.void
setForceOutput
(String[] val) Set the forceOutput field.void
setMotor1Axis
(float[] val) Set the motor1Axis field.void
setMotor2Axis
(float[] val) Set the motor2Axis field.void
setMotor3Axis
(float[] val) Set the motor3Axis 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.void
setStop3Bounce
(float val) Set the stop3Bounce field.void
setStop3ErrorCorrection
(float val) Set the stop3ErrorCorrection 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
-
SAIMotorJoint
public SAIMotorJoint(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.
-
getAutoCalc
public boolean getAutoCalc()Return the autoCalc boolean value.- Specified by:
getAutoCalc
in interfaceMotorJoint
- Returns:
- The autoCalc boolean value.
-
setAutoCalc
public void setAutoCalc(boolean val) Set the autoCalc field.- Specified by:
setAutoCalc
in interfaceMotorJoint
- Parameters:
val
- The boolean to set.
-
getMotor1Axis
public void getMotor1Axis(float[] val) Return the motor1Axis value in the argument float[]- Specified by:
getMotor1Axis
in interfaceMotorJoint
- Parameters:
val
- The float[] to initialize.
-
setMotor1Axis
public void setMotor1Axis(float[] val) Set the motor1Axis field.- Specified by:
setMotor1Axis
in interfaceMotorJoint
- Parameters:
val
- The float[] to set.
-
getMotor2Axis
public void getMotor2Axis(float[] val) Return the motor2Axis value in the argument float[]- Specified by:
getMotor2Axis
in interfaceMotorJoint
- Parameters:
val
- The float[] to initialize.
-
setMotor2Axis
public void setMotor2Axis(float[] val) Set the motor2Axis field.- Specified by:
setMotor2Axis
in interfaceMotorJoint
- Parameters:
val
- The float[] to set.
-
getMotor3Axis
public void getMotor3Axis(float[] val) Return the motor3Axis value in the argument float[]- Specified by:
getMotor3Axis
in interfaceMotorJoint
- Parameters:
val
- The float[] to initialize.
-
setMotor3Axis
public void setMotor3Axis(float[] val) Set the motor3Axis field.- Specified by:
setMotor3Axis
in interfaceMotorJoint
- Parameters:
val
- The float[] to set.
-
getAxis1Angle
public float getAxis1Angle()Return the axis1Angle float value.- Specified by:
getAxis1Angle
in interfaceMotorJoint
- Returns:
- The axis1Angle float value.
-
setAxis1Angle
public void setAxis1Angle(float val) Set the axis1Angle field.- Specified by:
setAxis1Angle
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getAxis2Angle
public float getAxis2Angle()Return the axis2Angle float value.- Specified by:
getAxis2Angle
in interfaceMotorJoint
- Returns:
- The axis2Angle float value.
-
setAxis2Angle
public void setAxis2Angle(float val) Set the axis2Angle field.- Specified by:
setAxis2Angle
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getAxis3Angle
public float getAxis3Angle()Return the axis3Angle float value.- Specified by:
getAxis3Angle
in interfaceMotorJoint
- Returns:
- The axis3Angle float value.
-
setAxis3Angle
public void setAxis3Angle(float val) Set the axis3Angle field.- Specified by:
setAxis3Angle
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getStop1Bounce
public float getStop1Bounce()Return the stop1Bounce float value.- Specified by:
getStop1Bounce
in interfaceMotorJoint
- Returns:
- The stop1Bounce float value.
-
setStop1Bounce
public void setStop1Bounce(float val) Set the stop1Bounce field.- Specified by:
setStop1Bounce
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getStop2Bounce
public float getStop2Bounce()Return the stop2Bounce float value.- Specified by:
getStop2Bounce
in interfaceMotorJoint
- Returns:
- The stop2Bounce float value.
-
setStop2Bounce
public void setStop2Bounce(float val) Set the stop2Bounce field.- Specified by:
setStop2Bounce
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getStop3Bounce
public float getStop3Bounce()Return the stop3Bounce float value.- Specified by:
getStop3Bounce
in interfaceMotorJoint
- Returns:
- The stop3Bounce float value.
-
setStop3Bounce
public void setStop3Bounce(float val) Set the stop3Bounce field.- Specified by:
setStop3Bounce
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getAxis1Torque
public float getAxis1Torque()Return the axis1Torque float value.- Specified by:
getAxis1Torque
in interfaceMotorJoint
- Returns:
- The axis1Torque float value.
-
setAxis1Torque
public void setAxis1Torque(float val) Set the axis1Torque field.- Specified by:
setAxis1Torque
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getAxis2Torque
public float getAxis2Torque()Return the axis2Torque float value.- Specified by:
getAxis2Torque
in interfaceMotorJoint
- Returns:
- The axis2Torque float value.
-
setAxis2Torque
public void setAxis2Torque(float val) Set the axis2Torque field.- Specified by:
setAxis2Torque
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getAxis3Torque
public float getAxis3Torque()Return the axis3Torque float value.- Specified by:
getAxis3Torque
in interfaceMotorJoint
- Returns:
- The axis3Torque float value.
-
setAxis3Torque
public void setAxis3Torque(float val) Set the axis3Torque field.- Specified by:
setAxis3Torque
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getMotor1Angle
public float getMotor1Angle()Return the motor1Angle float value.- Specified by:
getMotor1Angle
in interfaceMotorJoint
- Returns:
- The motor1Angle float value.
-
getMotor2Angle
public float getMotor2Angle()Return the motor2Angle float value.- Specified by:
getMotor2Angle
in interfaceMotorJoint
- Returns:
- The motor2Angle float value.
-
getMotor3Angle
public float getMotor3Angle()Return the motor3Angle float value.- Specified by:
getMotor3Angle
in interfaceMotorJoint
- Returns:
- The motor3Angle float value.
-
getMotor1AngleRate
public float getMotor1AngleRate()Return the motor1AngleRate float value.- Specified by:
getMotor1AngleRate
in interfaceMotorJoint
- Returns:
- The motor1AngleRate float value.
-
getMotor2AngleRate
public float getMotor2AngleRate()Return the motor2AngleRate float value.- Specified by:
getMotor2AngleRate
in interfaceMotorJoint
- Returns:
- The motor2AngleRate float value.
-
getMotor3AngleRate
public float getMotor3AngleRate()Return the motor3AngleRate float value.- Specified by:
getMotor3AngleRate
in interfaceMotorJoint
- Returns:
- The motor3AngleRate float value.
-
getStop1ErrorCorrection
public float getStop1ErrorCorrection()Return the stop1ErrorCorrection float value.- Specified by:
getStop1ErrorCorrection
in interfaceMotorJoint
- Returns:
- The stop1ErrorCorrection float value.
-
setStop1ErrorCorrection
public void setStop1ErrorCorrection(float val) Set the stop1ErrorCorrection field.- Specified by:
setStop1ErrorCorrection
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getStop2ErrorCorrection
public float getStop2ErrorCorrection()Return the stop2ErrorCorrection float value.- Specified by:
getStop2ErrorCorrection
in interfaceMotorJoint
- Returns:
- The stop2ErrorCorrection float value.
-
setStop2ErrorCorrection
public void setStop2ErrorCorrection(float val) Set the stop2ErrorCorrection field.- Specified by:
setStop2ErrorCorrection
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getStop3ErrorCorrection
public float getStop3ErrorCorrection()Return the stop3ErrorCorrection float value.- Specified by:
getStop3ErrorCorrection
in interfaceMotorJoint
- Returns:
- The stop3ErrorCorrection float value.
-
setStop3ErrorCorrection
public void setStop3ErrorCorrection(float val) Set the stop3ErrorCorrection field.- Specified by:
setStop3ErrorCorrection
in interfaceMotorJoint
- Parameters:
val
- The float to set.
-
getEnabledAxes
public int getEnabledAxes()Return the enabledAxes int value.- Specified by:
getEnabledAxes
in interfaceMotorJoint
- Returns:
- The enabledAxes int value.
-
setEnabledAxes
public void setEnabledAxes(int val) Set the enabledAxes field.- Specified by:
setEnabledAxes
in interfaceMotorJoint
- Parameters:
val
- The int to set.
-