|
|
Inherits BehaviorComponent, and BehaviorComponent.
Methods | |
| void | add (sceneObject) |
| void | add (sceneObject) |
| void | addAssetPreload (assetId) |
| void | addAssetPreload (assetId) |
| void | clear ([deleteObjects]) |
| void | clear ([deleteObjects]) |
| void | clearAssetPreloads () |
| void | clearAssetPreloads () |
| int | createDistanceJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[distance],[frequency],[dampingRatio],[collideConnected]) |
| int | createDistanceJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[distance],[frequency],[dampingRatio],[collideConnected]) |
| int | createFrictionJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[maxForce],[maxTorque],[collideConnected]) |
| int | createFrictionJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[maxForce],[maxTorque],[collideConnected]) |
| int | createMotorJoint (sceneObjectA, sceneObjectB,[linearOffset X/Y],[angularOffset],[maxForce],[maxTorque],[correctionFactor],[collideConnected]) |
| int | createMotorJoint (sceneObjectA, sceneObjectB,[linearOffset X/Y],[angularOffset],[maxForce],[maxTorque],[correctionFactor],[collideConnected]) |
| int | createPrismaticJoint (sceneObjectA, sceneObjectB, localAnchorA X/Y, localAnchorB X/Y, worldAxis X/Y,[collideConnected]) |
| int | createPrismaticJoint (sceneObjectA, sceneObjectB, localAnchorA X/Y, localAnchorB X/Y, worldAxis X/Y,[collideConnected]) |
| int | createPulleyJoint (sceneObjectA, sceneObjectB, localAnchorA X/Y, localAnchorB X/Y, worldGroundAnchorA X/Y, worldGroundAnchorB X/Y, ratio,[lengthA],[lengthB],[collideConnected]) |
| int | createPulleyJoint (sceneObjectA, sceneObjectB, localAnchorA X/Y, localAnchorB X/Y, worldGroundAnchorA X/Y, worldGroundAnchorB X/Y, ratio,[lengthA],[lengthB],[collideConnected]) |
| int | createRevoluteJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[collideConnected]) |
| int | createRevoluteJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[collideConnected]) |
| int | createRopeJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[maxLength],[collideConnected]) |
| int | createRopeJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[maxLength],[collideConnected]) |
| int | createTargetJoint (sceneObject, worldTarget X/Y, maxForce,[useCenterOfMass?],[frequency],[dampingRatio],[collideConnected]) |
| int | createTargetJoint (sceneObject, worldTarget X/Y, maxForce,[useCenterOfMass?],[frequency],[dampingRatio],[collideConnected]) |
| int | createWeldJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[frequency],[dampingRatio],[collideConnected]) |
| int | createWeldJoint (sceneObjectA, sceneObjectB,[localAnchorA X/Y],[localAnchorB X/Y],[frequency],[dampingRatio],[collideConnected]) |
| int | createWheelJoint (sceneObjectA, sceneObjectB, localAnchorA X/Y, localAnchorB X/Y, worldAxis X/Y,[collideConnected]) |
| int | createWheelJoint (sceneObjectA, sceneObjectB, localAnchorA X/Y, localAnchorB X/Y, worldAxis X/Y,[collideConnected]) |
| bool | deleteJoint (int jointId) |
| bool | deleteJoint (int jointId) |
| string | getAssetPreload (index) |
| string | getAssetPreload (index) |
| int | getAssetPreloadCount () |
| int | getAssetPreloadCount () |
| string | getControllers () |
| string | getControllers () |
| int | getCount () |
| int | getCount () |
| string | getDebugOn () |
| string | getDebugOn () |
| float | getDistanceJointDampingRatio (jointId) |
| float | getDistanceJointDampingRatio (jointId) |
| float | getDistanceJointFrequency (jointId) |
| float | getDistanceJointFrequency (jointId) |
| float | getDistanceJointLength (jointId) |
| float | getDistanceJointLength (jointId) |
| float | getFrictionJointMaxForce (jointId) |
| float | getFrictionJointMaxForce (jointId) |
| float | getFrictionJointMaxTorque (jointId) |
| float | getFrictionJointMaxTorque (jointId) |
| string | getGravity () |
| string | getGravity () |
| int | getJointCount () |
| int | getJointCount () |
| string | getJointType (int jointId) |
| string | getJointType (int jointId) |
| float | getMotorJointAngularOffset (jointId) |
| float | getMotorJointAngularOffset (jointId) |
| string | getMotorJointLinearOffset (jointId) |
| string | getMotorJointLinearOffset (jointId) |
| float | getMotorJointMaxForce (jointId) |
| float | getMotorJointMaxForce (jointId) |
| float | getMotorJointMaxTorque (jointId) |
| float | getMotorJointMaxTorque (jointId) |
| int | getObject (sceneObjectIndex) |
| int | getObject (sceneObjectIndex) |
| int | getPositionIterations () |
| int | getPositionIterations () |
| string | getPrismaticJointLimit (jointId) |
| string | getPrismaticJointLimit (jointId) |
| string | getPrismaticJointMotor (jointId) |
| string | getPrismaticJointMotor (jointId) |
| float | getRevoluteJointAngle (jointId) |
| float | getRevoluteJointAngle (jointId) |
| string | getRevoluteJointLimit (jointId) |
| string | getRevoluteJointLimit (jointId) |
| string | getRevoluteJointMotor (jointId) |
| string | getRevoluteJointMotor (jointId) |
| float | getRevoluteJointSpeed (jointId) |
| float | getRevoluteJointSpeed (jointId) |
| float | getRopeJointMaxLength (jointId) |
| float | getRopeJointMaxLength (jointId) |
| string | getSceneObjectList () |
| string | getSceneObjectList () |
| bool | getScenePause () |
| bool | getScenePause () |
| float | getSceneTime () |
| float | getSceneTime () |
| float | getTargetJointDampingRatio (jointId) |
| float | getTargetJointDampingRatio (jointId) |
| float | getTargetJointFrequency (jointId) |
| float | getTargetJointFrequency (jointId) |
| string | getTargetJointTarget (jointId) |
| string | getTargetJointTarget (jointId) |
| int | getVelocityIterations () |
| int | getVelocityIterations () |
| float | getWeldJointDampingRatio (jointId) |
| float | getWeldJointDampingRatio (jointId) |
| float | getWeldJointFrequency (jointId) |
| float | getWeldJointFrequency (jointId) |
| float | getWheelJointDampingRatio (jointId) |
| float | getWheelJointDampingRatio (jointId) |
| float | getWheelJointFrequency (jointId) |
| float | getWheelJointFrequency (jointId) |
| string | getWheelJointMotor (jointId) |
| string | getWheelJointMotor (jointId) |
| bool | isJoint (int jointId) |
| bool | isJoint (int jointId) |
| void | mergeScene (scene) |
| void | mergeScene (scene) |
| string | pickArea (startx/y, endx/y,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickArea (startx/y, endx/y,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickCircle (x/y, radius,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickCircle (x/y, radius,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickPoint (x/y,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickPoint (x/y,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickRay (startx/y, endx/y,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickRay (startx/y, endx/y,[sceneGroupMask],[sceneLayerMask],[pickMode]) |
| string | pickRayCollision (startx/y, endx/y,[sceneGroupMask],[sceneLayerMask]) |
| string | pickRayCollision (startx/y, endx/y,[sceneGroupMask],[sceneLayerMask]) |
| void | remove (sceneObject) |
| void | remove (sceneObject) |
| void | removeAssetPreload (assetId) |
| void | removeAssetPreload (assetId) |
| void | setDebugOff (debugOptions) |
| void | setDebugOff (debugOptions) |
| void | setDebugOn (debugOptions) |
| void | setDebugOn (debugOptions) |
| void | setDebugSceneObject (sceneObject) |
| void | setDebugSceneObject (sceneObject) |
| void | setDistanceJointDampingRatio (jointId, dampingRatio) |
| void | setDistanceJointDampingRatio (jointId, dampingRatio) |
| void | setDistanceJointFrequency (jointId, frequency) |
| void | setDistanceJointFrequency (jointId, frequency) |
| void | setDistanceJointLength (jointId, length) |
| void | setDistanceJointLength (jointId, length) |
| void | setFrictionJointMaxForce (jointId, maxForce) |
| void | setFrictionJointMaxForce (jointId, maxForce) |
| void | setFrictionJointMaxTorque (jointId, maxTorque) |
| void | setFrictionJointMaxTorque (jointId, maxTorque) |
| void | setGravity (forceX/forceY) |
| void | setGravity (forceX/forceY) |
| void | setMotorJointAngularOffset (jointId, angularOffset) |
| void | setMotorJointAngularOffset (jointId, angularOffset) |
| void | setMotorJointLinearOffset (jointId, linearOffset X/Y) |
| void | setMotorJointLinearOffset (jointId, linearOffset X/Y) |
| void | setMotorJointMaxForce (jointId, maxForce) |
| void | setMotorJointMaxForce (jointId, maxForce) |
| void | setMotorJointMaxTorque (jointId, maxTorque) |
| void | setMotorJointMaxTorque (jointId, maxTorque) |
| void | setPositionIterations (int iterations) |
| void | setPositionIterations (int iterations) |
| void | setPrismaticJointLimit (jointId, enableLimit,[lowerTranslation],[upperTranslation]) |
| void | setPrismaticJointLimit (jointId, enableLimit,[lowerTranslation],[upperTranslation]) |
| void | setPrismaticJointMotor (jointId, enableMotor,[motorSpeed],[maxMotorForce]) |
| void | setPrismaticJointMotor (jointId, enableMotor,[motorSpeed],[maxMotorForce]) |
| void | setRevoluteJointLimit (jointId, enableLimit,[lowerAngle],[upperAngle]) |
| void | setRevoluteJointLimit (jointId, enableLimit,[lowerAngle],[upperAngle]) |
| void | setRevoluteJointMotor (jointId, enableMotor,[motorSpeed],[maxMotorTorque]) |
| void | setRevoluteJointMotor (jointId, enableMotor,[motorSpeed],[maxMotorTorque]) |
| void | setRopeJointMaxLength (jointId, maxLength) |
| void | setRopeJointMaxLength (jointId, maxLength) |
| void | setScenePause (status) |
| void | setScenePause (status) |
| void | setTargetJointDampingRatio (jointId, dampingRatio) |
| void | setTargetJointDampingRatio (jointId, dampingRatio) |
| void | setTargetJointFrequency (jointId, frequency) |
| void | setTargetJointFrequency (jointId, frequency) |
| void | setTargetJointTarget (jointId, worldTarget X/Y) |
| void | setTargetJointTarget (jointId, worldTarget X/Y) |
| void | setVelocityIterations (int iterations) |
| void | setVelocityIterations (int iterations) |
| void | setWeldJointDampingRatio (jointId, dampingRatio) |
| void | setWeldJointDampingRatio (jointId, dampingRatio) |
| void | setWeldJointFrequency (jointId, frequency) |
| void | setWeldJointFrequency (jointId, frequency) |
| void | setWheelJointDampingRatio (jointId, dampingRatio) |
| void | setWheelJointDampingRatio (jointId, dampingRatio) |
| void | setWheelJointFrequency (jointId, frequency) |
| void | setWheelJointFrequency (jointId, frequency) |
| void | setWheelJointMotor (jointId, enableMotor,[motorSpeed],[maxMotorTorque]) |
| void | setWheelJointMotor (jointId, enableMotor,[motorSpeed],[maxMotorTorque]) |
Methods inherited from BehaviorComponent | |
| bool | addBehavior (BehaviorInstance bi) |
| bool | addBehavior (BehaviorInstance bi) |
| void | clearBehaviors () |
| void | clearBehaviors () |
| bool | connect (outputBehavior, inputBehavior, outputName, inputName) |
| bool | connect (outputBehavior, inputBehavior, outputName, inputName) |
| bool | disconnect (outputBehavior, inputBehavior, outputName, inputName) |
| bool | disconnect (outputBehavior, inputBehavior, outputName, inputName) |
| int | getBehavior (string BehaviorTemplateName) |
| int | getBehavior (string BehaviorTemplateName) |
| int | getBehaviorByIndex (int index) |
| int | getBehaviorByIndex (int index) |
| string | getBehaviorConnection (outputBehavior, outputName, connectionIndex) |
| string | getBehaviorConnection (outputBehavior, outputName, connectionIndex) |
| int | getBehaviorConnectionCount (outputBehavior, outputName) |
| int | getBehaviorConnectionCount (outputBehavior, outputName) |
| int | getBehaviorCount () |
| int | getBehaviorCount () |
| bool | raise (outputBehavior, outputName,[deltaTime]) |
| bool | raise (outputBehavior, outputName,[deltaTime]) |
| bool | removeBehavior (BehaviorInstance bi,[bool deleteBehavior=true]) |
| bool | removeBehavior (BehaviorInstance bi,[bool deleteBehavior=true]) |
| bool | reOrder (BehaviorInstance inst,[int desiredIndex=0]) |
| bool | reOrder (BehaviorInstance inst,[int desiredIndex=0]) |
Methods inherited from DynamicConsoleMethodComponent | |
| string | callOnBehaviors (methodName, argi) |
| string | callOnBehaviors (methodName, argi) |
Methods inherited from SimComponent | |
| bool | addComponents (%compObjName,%compObjName2,...) |
| bool | addComponents (%compObjName,%compObjName2,...) |
| int | getComponent (idx) |
| int | getComponent (idx) |
| int | getComponentCount () |
| int | getComponentCount () |
| bool | isEnabled () |
| bool | isEnabled () |
| bool | removeComponents (%compObjName,%compObjName2,...) |
| bool | removeComponents (%compObjName,%compObjName2,...) |
| void | setEnabled (enabled) |
| void | setEnabled (enabled) |
Methods inherited from SimObject | |
| void | addFieldFilter (fieldName) |
| void | addFieldFilter (fieldName) |
| string | call (%args) |
| string | call (%args) |
| int | clone ([bool copyDynamicFields?=false]) |
| int | clone ([bool copyDynamicFields?=false]) |
| void | delete () |
| void | delete () |
| void | dump () |
| void | dump () |
| void | dumpClassHierarchy () |
| void | dumpClassHierarchy () |
| string | getClassName () |
| string | getClassName () |
| string | getClassNamespace () |
| string | getClassNamespace () |
| string | getDynamicField (index) |
| string | getDynamicField (index) |
| int | getDynamicFieldCount () |
| int | getDynamicFieldCount () |
| string | getField (int index) |
| string | getField (int index) |
| int | getFieldCount () |
| int | getFieldCount () |
| string | getFieldType (fieldName) |
| string | getFieldType (fieldName) |
| string | getFieldValue (fieldName) |
| string | getFieldValue (fieldName) |
| int | getGroup () |
| int | getGroup () |
| int | getId () |
| int | getId () |
| string | getInternalName () |
| string | getInternalName () |
| string | getName () |
| string | getName () |
| string | getProgenitorFile () |
| string | getProgenitorFile () |
| string | getSuperClassNamespace () |
| string | getSuperClassNamespace () |
| int | getType () |
| int | getType () |
| bool | isChildOfGroup () |
| bool | isChildOfGroup () |
| bool | isMemberOfClass (string classname) |
| bool | isMemberOfClass (string classname) |
| bool | isMethod (string method name) |
| bool | isMethod (string method name) |
| bool | isTimerActive () |
| bool | isTimerActive () |
| void | removeFieldFilter (fieldName) |
| void | removeFieldFilter (fieldName) |
| bool | save (fileName,[selectedOnly]) |
| bool | save (fileName,[selectedOnly]) |
| int | schedule (time, command,< arg1...argN >) |
| int | schedule (time, command,< arg1...argN >) |
| void | setClassNamespace () |
| void | setClassNamespace () |
| bool | setFieldValue (fieldName, value) |
| bool | setFieldValue (fieldName, value) |
| void | setInternalName () |
| void | setInternalName () |
| void | setName (newName) |
| void | setName (newName) |
| void | setProgenitorFile (file) |
| void | setProgenitorFile (file) |
| void | setSuperClassNamespace () |
| void | setSuperClassNamespace () |
| bool | startTimer (callbackFunction, float timePeriod,[repeat]) |
| bool | startTimer (callbackFunction, float timePeriod,[repeat]) |
| void | stopTimer () |
| void | stopTimer () |
Additional Inherited Members | |
Fields inherited from BehaviorComponent | |
| bool | Enabled |
| bool | canSaveDynamicFields |
| string | internalName |
| SimObjectPtr | parentGroup |
| string | superclass |
| string | class |
| void Scene::add | ( | sceneObject | ) |
Add the SceneObject to the scene.
| sceneObject | The SceneObject to add to the scene. |
| void Scene::add | ( | sceneObject | ) |
Add the SceneObject to the scene.
| sceneObject | The SceneObject to add to the scene. |
| void Scene::addAssetPreload | ( | assetId | ) |
Adds the asset Id so that it is preloaded when the scene is loaded. The asset loaded immediately by this operation. Duplicate assets are ignored.
| assetId | The asset Id to be added. |
| void Scene::addAssetPreload | ( | assetId | ) |
Adds the asset Id so that it is preloaded when the scene is loaded. The asset loaded immediately by this operation. Duplicate assets are ignored.
| assetId | The asset Id to be added. |
| void Scene::clear | ( | ) |
Clear the scene of all scene objects.
| deleteObjects | A boolean flag that sets whether to delete the objects as well as remove them from the scene (default is true). |
| void Scene::clear | ( | ) |
Clear the scene of all scene objects.
| deleteObjects | A boolean flag that sets whether to delete the objects as well as remove them from the scene (default is true). |
| void Scene::clearAssetPreloads | ( | ) |
Clears all assets added as a preload.
| void Scene::clearAssetPreloads | ( | ) |
Clears all assets added as a preload.
| int Scene::createDistanceJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a distance joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| distance | The distance the joint should maintain between scene objects. The default is the distance currently between the scene objects. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness (default). |
| dampingRatio | The damping ratio. 0 = no damping (default), 1 = critical damping. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createDistanceJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a distance joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| distance | The distance the joint should maintain between scene objects. The default is the distance currently between the scene objects. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness (default). |
| dampingRatio | The damping ratio. 0 = no damping (default), 1 = critical damping. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createFrictionJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a friction joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| maxForce | The maximum friction force (N). |
| maxTorque | The maximum torque force (N-m). |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createFrictionJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a friction joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| maxForce | The maximum friction force (N). |
| maxTorque | The maximum torque force (N-m). |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createMotorJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a motor joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| linearOffsetX/Y | The linear offset in sceneObjectA space. |
| angularOffset | The angularOffset between the bodies. |
| maxForce | The maximum friction force (N). |
| maxTorque | The maximum torque force (N-m). |
| correctionFactor | The correction factor (tolerance). |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createMotorJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a motor joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| linearOffsetX/Y | The linear offset in sceneObjectA space. |
| angularOffset | The angularOffset between the bodies. |
| maxForce | The maximum friction force (N). |
| maxTorque | The maximum torque force (N-m). |
| correctionFactor | The correction factor (tolerance). |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createPrismaticJoint | ( | sceneObjectA | , |
| sceneObjectB | , | ||
| localAnchorA X/ | Y, | ||
| localAnchorB X/ | Y, | ||
| worldAxis X/ | Y | ||
| ) |
Creates a prismatic joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| worldAxis | The world axis defining the translational degree of freedom. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createPrismaticJoint | ( | sceneObjectA | , |
| sceneObjectB | , | ||
| localAnchorA X/ | Y, | ||
| localAnchorB X/ | Y, | ||
| worldAxis X/ | Y | ||
| ) |
Creates a prismatic joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| worldAxis | The world axis defining the translational degree of freedom. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createPulleyJoint | ( | sceneObjectA | , |
| sceneObjectB | , | ||
| localAnchorA X/ | Y, | ||
| localAnchorB X/ | Y, | ||
| worldGroundAnchorA X/ | Y, | ||
| worldGroundAnchorB X/ | Y, | ||
| ratio | |||
| ) |
Creates a prismatic joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| worldGroundAnchorA | The world point of the first ground anchor. This point never moves. |
| worldGroundAnchorB | The world point of the second ground anchor. This point never moves. |
| ratio | The pulley ratio used to simulate a block-and-tackle pulley. |
| lengthA | The reference pulley length for the segment attached to scene object A. Defaults to the distance between the first scene object and the first ground anchor. |
| lengthB | The reference pulley length for the segment attached to scene object B. Defaults to the distance between the second scene object and the second ground anchor. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createPulleyJoint | ( | sceneObjectA | , |
| sceneObjectB | , | ||
| localAnchorA X/ | Y, | ||
| localAnchorB X/ | Y, | ||
| worldGroundAnchorA X/ | Y, | ||
| worldGroundAnchorB X/ | Y, | ||
| ratio | |||
| ) |
Creates a prismatic joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| worldGroundAnchorA | The world point of the first ground anchor. This point never moves. |
| worldGroundAnchorB | The world point of the second ground anchor. This point never moves. |
| ratio | The pulley ratio used to simulate a block-and-tackle pulley. |
| lengthA | The reference pulley length for the segment attached to scene object A. Defaults to the distance between the first scene object and the first ground anchor. |
| lengthB | The reference pulley length for the segment attached to scene object B. Defaults to the distance between the second scene object and the second ground anchor. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createRevoluteJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a revolute joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createRevoluteJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a revolute joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createRopeJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a rope joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| maxLength | The maximum rigid length of the rope. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createRopeJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a rope joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| maxLength | The maximum rigid length of the rope. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createTargetJoint | ( | sceneObject | , |
| worldTarget X/ | Y, | ||
| maxForce | |||
| ) |
Creates a target joint.
| sceneObject | The scene object to connect to the joint. |
| worldTarget | The world point target to move the scene object to. |
| maxForce | The maximum force the joint should use to position the scene object at the target. |
| useCenterOfMass | Whether to use the center of mass as the point which the joint is attached or not. Defaults to false. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness (default=0.7). |
| dampingRatio | The damping ratio. 0 = no damping (default), 1 = critical damping. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createTargetJoint | ( | sceneObject | , |
| worldTarget X/ | Y, | ||
| maxForce | |||
| ) |
Creates a target joint.
| sceneObject | The scene object to connect to the joint. |
| worldTarget | The world point target to move the scene object to. |
| maxForce | The maximum force the joint should use to position the scene object at the target. |
| useCenterOfMass | Whether to use the center of mass as the point which the joint is attached or not. Defaults to false. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness (default=0.7). |
| dampingRatio | The damping ratio. 0 = no damping (default), 1 = critical damping. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createWeldJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a weld joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness (default). |
| dampingRatio | The damping ratio. 0 = no damping (default), 1 = critical damping. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createWeldJoint | ( | sceneObjectA | , |
| sceneObjectB | |||
| ) |
Creates a weld joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness (default). |
| dampingRatio | The damping ratio. 0 = no damping (default), 1 = critical damping. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createWheelJoint | ( | sceneObjectA | , |
| sceneObjectB | , | ||
| localAnchorA X/ | Y, | ||
| localAnchorB X/ | Y, | ||
| worldAxis X/ | Y | ||
| ) |
Creates a wheel joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| worldAxis | The world axis of the wheel suspension spring. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| int Scene::createWheelJoint | ( | sceneObjectA | , |
| sceneObjectB | , | ||
| localAnchorA X/ | Y, | ||
| localAnchorB X/ | Y, | ||
| worldAxis X/ | Y | ||
| ) |
Creates a wheel joint.
| sceneObjectA | The first scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| sceneObjectB | The second scene object to connect to the joint. Use an empty string to indicate the Scene ground body. |
| localAnchorA | The local point of the first scene object where the joint connects. |
| localAnchorB | The local point of the second scene object where the joint connects. |
| worldAxis | The world axis of the wheel suspension spring. |
| collideConnected | Whether the scene objects can collide with each other while connected with this joint. |
| bool Scene::deleteJoint | ( | int | jointId | ) |
Deletes the specified joint Id.
| jointId | The Id of the joint. |
| bool Scene::deleteJoint | ( | int | jointId | ) |
Deletes the specified joint Id.
| jointId | The Id of the joint. |
| string Scene::getAssetPreload | ( | index | ) |
Gets the asset to be preloaded at the specified index.
| index | The index of the preloaded asset. |
| string Scene::getAssetPreload | ( | index | ) |
Gets the asset to be preloaded at the specified index.
| index | The index of the preloaded asset. |
| int Scene::getAssetPreloadCount | ( | ) |
Gets the number of assets set to preload for this scene.
| int Scene::getAssetPreloadCount | ( | ) |
Gets the number of assets set to preload for this scene.
| string Scene::getControllers | ( | ) |
Gets the Scene Controllers.
| string Scene::getControllers | ( | ) |
Gets the Scene Controllers.
| int Scene::getCount | ( | ) |
Gets the count of scene objects in the scnee.
| int Scene::getCount | ( | ) |
Gets the count of scene objects in the scnee.
| string Scene::getDebugOn | ( | ) |
Gets the state of the debug modes.
| string Scene::getDebugOn | ( | ) |
Gets the state of the debug modes.
| float Scene::getDistanceJointDampingRatio | ( | jointId | ) |
Gets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getDistanceJointDampingRatio | ( | jointId | ) |
Gets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getDistanceJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| float Scene::getDistanceJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| float Scene::getDistanceJointLength | ( | jointId | ) |
Gets the distance the joint should maintain between scene objects.
| jointId | The Id of the joint to use. |
| float Scene::getDistanceJointLength | ( | jointId | ) |
Gets the distance the joint should maintain between scene objects.
| jointId | The Id of the joint to use. |
| float Scene::getFrictionJointMaxForce | ( | jointId | ) |
Sets the maximum friction force.
| jointId | The Id of the joint to use. |
| float Scene::getFrictionJointMaxForce | ( | jointId | ) |
Sets the maximum friction force.
| jointId | The Id of the joint to use. |
| float Scene::getFrictionJointMaxTorque | ( | jointId | ) |
Gets the maximum torque force.
| jointId | The Id of the joint to use. |
| float Scene::getFrictionJointMaxTorque | ( | jointId | ) |
Gets the maximum torque force.
| jointId | The Id of the joint to use. |
| string Scene::getGravity | ( | ) |
Gets the gravity force applied to all objects in the scene.
| string Scene::getGravity | ( | ) |
Gets the gravity force applied to all objects in the scene.
| int Scene::getJointCount | ( | ) |
Gets the joint count.
| int Scene::getJointCount | ( | ) |
Gets the joint count.
| string Scene::getJointType | ( | int | jointId | ) |
Gets the joint type of the specified joint Id.
| jointId | The Id of the joint. |
| string Scene::getJointType | ( | int | jointId | ) |
Gets the joint type of the specified joint Id.
| jointId | The Id of the joint. |
| float Scene::getMotorJointAngularOffset | ( | jointId | ) |
Gets angularOffset between the bodies.
| jointId | The Id of the joint to use. |
| float Scene::getMotorJointAngularOffset | ( | jointId | ) |
Gets angularOffset between the bodies.
| jointId | The Id of the joint to use. |
| string Scene::getMotorJointLinearOffset | ( | jointId | ) |
Gets the linear offset in sceneObjectA space.
| jointId | The Id of the joint to use. |
| string Scene::getMotorJointLinearOffset | ( | jointId | ) |
Gets the linear offset in sceneObjectA space.
| jointId | The Id of the joint to use. |
| float Scene::getMotorJointMaxForce | ( | jointId | ) |
Sets the maximum motor force.
| jointId | The Id of the joint to use. |
| float Scene::getMotorJointMaxForce | ( | jointId | ) |
Sets the maximum motor force.
| jointId | The Id of the joint to use. |
| float Scene::getMotorJointMaxTorque | ( | jointId | ) |
Gets the maximum motor torque force.
| jointId | The Id of the joint to use. |
| float Scene::getMotorJointMaxTorque | ( | jointId | ) |
Gets the maximum motor torque force.
| jointId | The Id of the joint to use. |
| int Scene::getObject | ( | sceneObjectIndex | ) |
Gets the scene object at the selected index.
| sceneObjectIndex | The index of the desired object |
| int Scene::getObject | ( | sceneObjectIndex | ) |
Gets the scene object at the selected index.
| sceneObjectIndex | The index of the desired object |
| int Scene::getPositionIterations | ( | ) |
Gets the number of position iterations the physics solver uses. (
| int Scene::getPositionIterations | ( | ) |
Gets the number of position iterations the physics solver uses. (
| string Scene::getPrismaticJointLimit | ( | jointId | ) |
Gets whether the joint has translational limits or not and the limits themselves.
| string Scene::getPrismaticJointLimit | ( | jointId | ) |
Gets whether the joint has translational limits or not and the limits themselves.
| string Scene::getPrismaticJointMotor | ( | jointId | ) |
Gets whether the joint has a motor or not and the motor settings.
| string Scene::getPrismaticJointMotor | ( | jointId | ) |
Gets whether the joint has a motor or not and the motor settings.
| float Scene::getRevoluteJointAngle | ( | jointId | ) |
Gets the current angle of a revolute joint.
| jointId | The Id of the joint to use. |
| float Scene::getRevoluteJointAngle | ( | jointId | ) |
Gets the current angle of a revolute joint.
| jointId | The Id of the joint to use. |
| string Scene::getRevoluteJointLimit | ( | jointId | ) |
Gets whether the joint has angular limits or not and the limits themselves.
| jointId | The Id of the joint to use. |
| string Scene::getRevoluteJointLimit | ( | jointId | ) |
Gets whether the joint has angular limits or not and the limits themselves.
| jointId | The Id of the joint to use. |
| string Scene::getRevoluteJointMotor | ( | jointId | ) |
Gets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| string Scene::getRevoluteJointMotor | ( | jointId | ) |
Gets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| float Scene::getRevoluteJointSpeed | ( | jointId | ) |
Gets the current speed of a revolute joint.
| jointId | The Id of the joint to use. |
| float Scene::getRevoluteJointSpeed | ( | jointId | ) |
Gets the current speed of a revolute joint.
| jointId | The Id of the joint to use. |
| float Scene::getRopeJointMaxLength | ( | jointId | ) |
Gets the maximum rigid length of the rope.
| jointId | The Id of the joint to use. |
| float Scene::getRopeJointMaxLength | ( | jointId | ) |
Gets the maximum rigid length of the rope.
| jointId | The Id of the joint to use. |
| string Scene::getSceneObjectList | ( | ) |
Gets the Scene Object-List.
| string Scene::getSceneObjectList | ( | ) |
Gets the Scene Object-List.
| bool Scene::getScenePause | ( | ) |
Gets scene pause status.
| bool Scene::getScenePause | ( | ) |
Gets scene pause status.
| float Scene::getSceneTime | ( | ) |
Gets the Scene Time.
| float Scene::getSceneTime | ( | ) |
Gets the Scene Time.
| float Scene::getTargetJointDampingRatio | ( | jointId | ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getTargetJointDampingRatio | ( | jointId | ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getTargetJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| float Scene::getTargetJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| string Scene::getTargetJointTarget | ( | jointId | ) |
Gets the target world point for the scene object.
| jointId | The Id of the joint to use. |
| string Scene::getTargetJointTarget | ( | jointId | ) |
Gets the target world point for the scene object.
| jointId | The Id of the joint to use. |
| int Scene::getVelocityIterations | ( | ) |
Gets the number of velocity iterations the physics solver uses. (
| int Scene::getVelocityIterations | ( | ) |
Gets the number of velocity iterations the physics solver uses. (
| float Scene::getWeldJointDampingRatio | ( | jointId | ) |
Gets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getWeldJointDampingRatio | ( | jointId | ) |
Gets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getWeldJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| float Scene::getWeldJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| float Scene::getWheelJointDampingRatio | ( | jointId | ) |
Gets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getWheelJointDampingRatio | ( | jointId | ) |
Gets the damping ratio.
| jointId | The Id of the joint to use. |
| float Scene::getWheelJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| float Scene::getWheelJointFrequency | ( | jointId | ) |
Gets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| string Scene::getWheelJointMotor | ( | jointId | ) |
Gets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| string Scene::getWheelJointMotor | ( | jointId | ) |
Gets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| bool Scene::isJoint | ( | int | jointId | ) |
Gets whether the joint Id is valid or not.
| jointId | The Id of the joint. |
| bool Scene::isJoint | ( | int | jointId | ) |
Gets whether the joint Id is valid or not.
| jointId | The Id of the joint. |
| void Scene::mergeScene | ( | scene | ) |
Merges the specified scene into this scene by cloning the scenes contents.
| void Scene::mergeScene | ( | scene | ) |
Merges the specified scene into this scene by cloning the scenes contents.
| string Scene::pickArea | ( | startx/ | y, |
| endx/ | y | ||
| ) |
Picks objects intersecting the specified area with optional group/layer masks.
| startx/y | The coordinates of the start point as either ("x y") or (x,y) |
| endx/y | The coordinates of the end point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'oobb'). |
| string Scene::pickArea | ( | startx/ | y, |
| endx/ | y | ||
| ) |
Picks objects intersecting the specified area with optional group/layer masks.
| startx/y | The coordinates of the start point as either ("x y") or (x,y) |
| endx/y | The coordinates of the end point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'oobb'). |
| string Scene::pickCircle | ( | x/ | y, |
| radius | |||
| ) |
Picks objects intersecting the specified circle with optional group/layer masks.
| x/y | The coordinate of the point as either ("x y") or (x,y) |
| radius | The radius of the circle. |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'ooabb'). |
| string Scene::pickCircle | ( | x/ | y, |
| radius | |||
| ) |
Picks objects intersecting the specified circle with optional group/layer masks.
| x/y | The coordinate of the point as either ("x y") or (x,y) |
| radius | The radius of the circle. |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'ooabb'). |
| string Scene::pickPoint | ( | x/ | y | ) |
Picks objects intersecting the specified point with optional group/layer masks.
| x/y | The coordinate of the point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'ooabb'). |
| string Scene::pickPoint | ( | x/ | y | ) |
Picks objects intersecting the specified point with optional group/layer masks.
| x/y | The coordinate of the point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'ooabb'). |
| string Scene::pickRay | ( | startx/ | y, |
| endx/ | y | ||
| ) |
Picks objects intersecting the specified ray with optional group/layer masks.
| startx/y | The coordinates of the start point as either ("x y") or (x,y) |
| endx/y | The coordinates of the end point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'oobb'). |
| string Scene::pickRay | ( | startx/ | y, |
| endx/ | y | ||
| ) |
Picks objects intersecting the specified ray with optional group/layer masks.
| startx/y | The coordinates of the start point as either ("x y") or (x,y) |
| endx/y | The coordinates of the end point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| pickMode | Optional mode 'any', 'aabb', 'oobb' or 'collision' (default is 'oobb'). |
| string Scene::pickRayCollision | ( | startx/ | y, |
| endx/ | y | ||
| ) |
Picks objects with collision shapes intersecting the specified ray with optional group/layer masks. Unlike other pick methods, this returns the complete detail for each object encountered, returning the collision point, normal and fraction of the ray intersection.
| startx/y | The coordinates of the start point as either ("x y") or (x,y) |
| endx/y | The coordinates of the end point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| string Scene::pickRayCollision | ( | startx/ | y, |
| endx/ | y | ||
| ) |
Picks objects with collision shapes intersecting the specified ray with optional group/layer masks. Unlike other pick methods, this returns the complete detail for each object encountered, returning the collision point, normal and fraction of the ray intersection.
| startx/y | The coordinates of the start point as either ("x y") or (x,y) |
| endx/y | The coordinates of the end point as either ("x y") or (x,y) |
| sceneGroupMask | Optional scene group mask. (-1) or empty string selects all groups. |
| sceneLayerMask | Optional scene layer mask. (-1) or empty string selects all layers. |
| void Scene::remove | ( | sceneObject | ) |
Remove the SceneObject from the scene.
| sceneObject | The SceneObject to remove from the scene. |
| void Scene::remove | ( | sceneObject | ) |
Remove the SceneObject from the scene.
| sceneObject | The SceneObject to remove from the scene. |
| void Scene::removeAssetPreload | ( | assetId | ) |
Removes the asset Id from being preloaded when the scene is loaded. The asset may be unloaded immediately by this operation if it has no other references.
| assetId | The asset Id to be removed. |
| void Scene::removeAssetPreload | ( | assetId | ) |
Removes the asset Id from being preloaded when the scene is loaded. The asset may be unloaded immediately by this operation if it has no other references.
| assetId | The asset Id to be removed. |
| void Scene::setDebugOff | ( | debugOptions | ) |
Sets Debug options(s) off.
| debugOptions | Either a list of debug modes to turn off (comma-separated) or a string (space-separated) |
| void Scene::setDebugOff | ( | debugOptions | ) |
Sets Debug options(s) off.
| debugOptions | Either a list of debug modes to turn off (comma-separated) or a string (space-separated) |
| void Scene::setDebugOn | ( | debugOptions | ) |
Sets Debug option(s) on.
| debugOptions | Either a list of debug modes (comma-separated), or a string with the modes (space-separated) |
| void Scene::setDebugOn | ( | debugOptions | ) |
Sets Debug option(s) on.
| debugOptions | Either a list of debug modes (comma-separated), or a string with the modes (space-separated) |
| void Scene::setDebugSceneObject | ( | sceneObject | ) |
Sets the scene object to monitor in the debug metrics.
| SceneObject | The scene object to monitor in the debug metrics. |
| void Scene::setDebugSceneObject | ( | sceneObject | ) |
Sets the scene object to monitor in the debug metrics.
| SceneObject | The scene object to monitor in the debug metrics. |
| void Scene::setDistanceJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setDistanceJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setDistanceJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setDistanceJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setDistanceJointLength | ( | jointId | , |
| length | |||
| ) |
Sets the distance the joint should maintain between scene objects.
| jointId | The Id of the joint to use. |
| length | The length the joint should maintain between scene objects. |
| void Scene::setDistanceJointLength | ( | jointId | , |
| length | |||
| ) |
Sets the distance the joint should maintain between scene objects.
| jointId | The Id of the joint to use. |
| length | The length the joint should maintain between scene objects. |
| void Scene::setFrictionJointMaxForce | ( | jointId | , |
| maxForce | |||
| ) |
Sets the maximum friction force.
| jointId | The Id of the joint to use. |
| maxForce | The maximum friction force (N). |
| void Scene::setFrictionJointMaxForce | ( | jointId | , |
| maxForce | |||
| ) |
Sets the maximum friction force.
| jointId | The Id of the joint to use. |
| maxForce | The maximum friction force (N). |
| void Scene::setFrictionJointMaxTorque | ( | jointId | , |
| maxTorque | |||
| ) |
Sets the maximum torque force.
| jointId | The Id of the joint to use. |
| maxTorque | The maximum torque force (N). |
| void Scene::setFrictionJointMaxTorque | ( | jointId | , |
| maxTorque | |||
| ) |
Sets the maximum torque force.
| jointId | The Id of the joint to use. |
| maxTorque | The maximum torque force (N). |
| void Scene::setGravity | ( | forceX/ | forceY | ) |
The gravity force to apply to all objects in the scene.
| forceX/forceY | The direction and magnitude of the force in each direction. Formatted as either ("forceX forceY") or (forceX, forceY) |
| void Scene::setGravity | ( | forceX/ | forceY | ) |
The gravity force to apply to all objects in the scene.
| forceX/forceY | The direction and magnitude of the force in each direction. Formatted as either ("forceX forceY") or (forceX, forceY) |
| void Scene::setMotorJointAngularOffset | ( | jointId | , |
| angularOffset | |||
| ) |
Sets the angularOffset between the bodies.
| jointId | The Id of the joint to use. |
| angularOffset | The angularOffset between the bodies. |
| void Scene::setMotorJointAngularOffset | ( | jointId | , |
| angularOffset | |||
| ) |
Sets the angularOffset between the bodies.
| jointId | The Id of the joint to use. |
| angularOffset | The angularOffset between the bodies. |
| void Scene::setMotorJointLinearOffset | ( | jointId | , |
| linearOffset X/ | Y | ||
| ) |
Sets the linear offset in sceneObjectA space.
| jointId | The Id of the joint to use. |
| linearOffsetX/Y | The linear offset in sceneObjectA space. |
| void Scene::setMotorJointLinearOffset | ( | jointId | , |
| linearOffset X/ | Y | ||
| ) |
Sets the linear offset in sceneObjectA space.
| jointId | The Id of the joint to use. |
| linearOffsetX/Y | The linear offset in sceneObjectA space. |
| void Scene::setMotorJointMaxForce | ( | jointId | , |
| maxForce | |||
| ) |
Sets the maximum motor force.
| jointId | The Id of the joint to use. |
| maxForce | The maximum motor force (N). |
| void Scene::setMotorJointMaxForce | ( | jointId | , |
| maxForce | |||
| ) |
Sets the maximum motor force.
| jointId | The Id of the joint to use. |
| maxForce | The maximum motor force (N). |
| void Scene::setMotorJointMaxTorque | ( | jointId | , |
| maxTorque | |||
| ) |
Sets the maximum motor torque force.
| jointId | The Id of the joint to use. |
| maxTorque | The maximum motor torque force (N). |
| void Scene::setMotorJointMaxTorque | ( | jointId | , |
| maxTorque | |||
| ) |
Sets the maximum motor torque force.
| jointId | The Id of the joint to use. |
| maxTorque | The maximum motor torque force (N). |
| void Scene::setPositionIterations | ( | int | iterations | ) |
Sets the number of position iterations the physics solver uses.
| void Scene::setPositionIterations | ( | int | iterations | ) |
Sets the number of position iterations the physics solver uses.
| void Scene::setPrismaticJointLimit | ( | jointId | , |
| enableLimit | |||
| ) |
Sets whether the joint has translational limits or not and the limits themselves.
| jointId | The Id of the joint to use. |
| enableLimit | Whether the joint has angular limits or not. |
| lowerTranslation | The lower translation limit. |
| upperTranslation | The upper translation limit. |
| void Scene::setPrismaticJointLimit | ( | jointId | , |
| enableLimit | |||
| ) |
Sets whether the joint has translational limits or not and the limits themselves.
| jointId | The Id of the joint to use. |
| enableLimit | Whether the joint has angular limits or not. |
| lowerTranslation | The lower translation limit. |
| upperTranslation | The upper translation limit. |
| void Scene::setPrismaticJointMotor | ( | jointId | , |
| enableMotor | |||
| ) |
Sets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| enableMotor | Whether the joint has a motor or not. |
| motorSpeed | The motor speed (degrees per/sec). |
| maxMotorForce | The maximum motor force used to achieve the specified motor speed (N-m). |
| void Scene::setPrismaticJointMotor | ( | jointId | , |
| enableMotor | |||
| ) |
Sets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| enableMotor | Whether the joint has a motor or not. |
| motorSpeed | The motor speed (degrees per/sec). |
| maxMotorForce | The maximum motor force used to achieve the specified motor speed (N-m). |
| void Scene::setRevoluteJointLimit | ( | jointId | , |
| enableLimit | |||
| ) |
Sets whether the joint has angular limits or not and the limits themselves.
| jointId | The Id of the joint to use. |
| enableLimit | Whether the joint has angular limits or not. |
| lowerAngle | The lower angle of the angular limit. |
| upperAngle | The upper angle of the angular limit. |
| void Scene::setRevoluteJointLimit | ( | jointId | , |
| enableLimit | |||
| ) |
Sets whether the joint has angular limits or not and the limits themselves.
| jointId | The Id of the joint to use. |
| enableLimit | Whether the joint has angular limits or not. |
| lowerAngle | The lower angle of the angular limit. |
| upperAngle | The upper angle of the angular limit. |
| void Scene::setRevoluteJointMotor | ( | jointId | , |
| enableMotor | |||
| ) |
Sets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| enableMotor | Whether the joint has a motor or not. |
| motorSpeed | The motor speed (degrees per/sec). |
| maxMotorTorque | The maximum motor torque used to achieve the specified motor speed (N-m). |
| void Scene::setRevoluteJointMotor | ( | jointId | , |
| enableMotor | |||
| ) |
Sets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| enableMotor | Whether the joint has a motor or not. |
| motorSpeed | The motor speed (degrees per/sec). |
| maxMotorTorque | The maximum motor torque used to achieve the specified motor speed (N-m). |
| void Scene::setRopeJointMaxLength | ( | jointId | , |
| maxLength | |||
| ) |
Sets the maximum rigid length of the rope.
| jointId | The Id of the joint to use. |
| maxLength | The maximum rigid length of the rope. |
| void Scene::setRopeJointMaxLength | ( | jointId | , |
| maxLength | |||
| ) |
Sets the maximum rigid length of the rope.
| jointId | The Id of the joint to use. |
| maxLength | The maximum rigid length of the rope. |
| void Scene::setScenePause | ( | status | ) |
Sets scene pause status.
| void Scene::setScenePause | ( | status | ) |
Sets scene pause status.
| void Scene::setTargetJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setTargetJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setTargetJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setTargetJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setTargetJointTarget | ( | jointId | , |
| worldTarget X/ | Y | ||
| ) |
Sets the target world point for the scene object.
| jointId | The Id of the joint to use. |
| worldTarget | The target world point to move the scene object to. |
| void Scene::setTargetJointTarget | ( | jointId | , |
| worldTarget X/ | Y | ||
| ) |
Sets the target world point for the scene object.
| jointId | The Id of the joint to use. |
| worldTarget | The target world point to move the scene object to. |
| void Scene::setVelocityIterations | ( | int | iterations | ) |
Sets the number of velocity iterations the physics solver uses.
| void Scene::setVelocityIterations | ( | int | iterations | ) |
Sets the number of velocity iterations the physics solver uses.
| void Scene::setWeldJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setWeldJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setWeldJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setWeldJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setWheelJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setWheelJointDampingRatio | ( | jointId | , |
| dampingRatio | |||
| ) |
Sets the damping ratio.
| jointId | The Id of the joint to use. |
| dampingRatio | The damping ratio. 0 = no damping, 1 = critical damping. |
| void Scene::setWheelJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setWheelJointFrequency | ( | jointId | , |
| frequency | |||
| ) |
Sets the mass-spring-damper frequency in Hertz.
| jointId | The Id of the joint to use. |
| frequency | The mass-spring-damper frequency in Hertz. A value of 0 disables softness. |
| void Scene::setWheelJointMotor | ( | jointId | , |
| enableMotor | |||
| ) |
Sets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| enableMotor | Whether the joint has a motor or not. |
| motorSpeed | The motor speed (degrees per/sec). |
| maxMotorTorque | The maximum motor torque used to achieve the specified motor speed (N-m). |
| void Scene::setWheelJointMotor | ( | jointId | , |
| enableMotor | |||
| ) |
Sets whether the joint has a motor or not and the motor settings.
| jointId | The Id of the joint to use. |
| enableMotor | Whether the joint has a motor or not. |
| motorSpeed | The motor speed (degrees per/sec). |
| maxMotorTorque | The maximum motor torque used to achieve the specified motor speed (N-m). |