Project

General

Profile

SO3Engine
Newton Physics

Functions

int SO3WorldSetFPS (mmachine m)
 SO3WorldSetFPS : defines FPS for physic world. More...
 
int SO3WorldGetFPS (mmachine m)
 SO3WorldGetFPS : retrieve the FPS for physic world. More...
 
int SO3WorldSetSize (mmachine m)
 SO3WorldSetSize : function to defines world size. More...
 
int SO3WorldSetFrictionModel (mmachine m)
 SO3WorldSetFrictionModel : This function sets the friction model for the world ! Deprecated ! More...
 
int SO3WorldGetFrictionModel (mmachine m)
 SO3WorldGetFrictionModel : This function gets the friction model for the world ! Deprecated ! More...
 
int SO3WorldSetPlateformArchitecture (mmachine m)
 SO3WorldSetPlateformArchitecture : This function sets the platform architecture for the world ! Deprecated ! More...
 
int SO3WorldGetPlateformArchitecture (mmachine m)
 SO3WorldGetPlateformArchitecture : This function gets the platform architecture for the world ! Deprecated ! More...
 
int SO3WorldSetSolverModel (mmachine m)
 SO3WorldSetSolverModel : This function sets thesolver model for the world. More...
 
int SO3WorldGetSolverModel (mmachine m)
 SO3WorldGetSolverModel : This function gets the solver model of the world. More...
 
int SO3WorldSetEnabled (mmachine m)
 SO3WorldSetEnabled : Activate or Deactivate the physic world. More...
 
int SO3WorldGetEnabled (mmachine m)
 SO3WorldGetEnabled : Return the enable state of the physic world. More...
 
int SO3WorldReset (mmachine m)
 SO3WorldReset : Reset the physic world and all bodies states. More...
 
int SO3WorldSetBodiesInitialState (mmachine m)
 SO3WorldSetBodiesInitialState : Set the current PRS as initial PRS to all bodies. More...
 
int SO3BodySetInitialState (mmachine m)
 SO3BodySetInitialState : Set the current PRS as initial PRS to this body. More...
 
int SO3WorldShowLines (mmachine m)
 SO3WorldShowLines : Return true if world shows its debug calculation lines. More...
 
int SO3WorldSetGravity (mmachine m)
 SO3WorldSetGravity : defines gravity for the scene. More...
 
int SO3WorldGetGravity (mmachine m)
 SO3WorldGetGravity : get the gravity of the scene. More...
 
int SO3BodyCreateBox (mmachine m)
 SO3BodyCreateBox : Create a body as a box shape. More...
 
int SO3BodyCreateEllipsoid (mmachine m)
 SO3BodyCreateEllipsoid : Create a body as an ellipsoid shape. More...
 
int SO3BodyCreateCapsule (mmachine m)
 SO3BodyCreateCapsule : Create a body as a capsule shape. More...
 
int SO3BodyCreateChamferCylinder (mmachine m)
 SO3BodyCreateChamferCylinder : Create a body as a chamfer cylinder shape. More...
 
int SO3BodyCreateCone (mmachine m)
 SO3BodyCreateCone : Create a body as a cone shape. More...
 
int SO3BodyCreateCylinder (mmachine m)
 SO3BodyCreateCylinder : Create a body as a cylinder shape. More...
 
int SO3BodyCreatePyramid (mmachine m)
 SO3BodyCreatePyramid : Create a body as a pyramid shape. More...
 
int SO3BodyCreateBoxExt (mmachine m)
 SO3BodyCreateBoxExt : Create a body as a box shape. More...
 
int SO3BodyCreateEllipsoidExt (mmachine m)
 SO3BodyCreateEllipsoidExt : Create a body as an ellipsoid shape. More...
 
int SO3BodyCreateCapsuleExt (mmachine m)
 SO3BodyCreateCapsuleExt : Create a body as a capsule shape. More...
 
int SO3BodyCreateChamferCylinderExt (mmachine m)
 SO3BodyCreateChamferCylinderExt : Create a body as a chamfer cylinder shape. More...
 
int SO3BodyCreateConeExt (mmachine m)
 SO3BodyCreateConeExt : Create a body as a cone shape. More...
 
int SO3BodyCreateCylinderExt (mmachine m)
 SO3BodyCreateCylinderExt : Create a body as a cylinder shape. More...
 
int SO3BodyCreatePyramidExt (mmachine m)
 SO3BodyCreatePyramidExt : Create a body as a pyramid shape. More...
 
int SO3BodyCreateCollisionTree (mmachine m)
 SO3BodyCreateCollisionTree : Create a body as an exact collision tree. More...
 
int SO3BodyCreateShape (mmachine m)
 SO3BodyCreateShape : Create a body as a shape (automatic calculation) More...
 
int SO3BodyCreateConcaveShape (mmachine m)
 SO3BodyCreateConcaveShape : Create a body as a shape (automatic calculation) More...
 
int SO3BodySetMass (mmachine m)
 SO3BodySetMass : Set a mass to a body. More...
 
int SO3BodyCreateBasicJointUpVector (mmachine m)
 SO3BodyCreateBasicJointUpVector : Create an up joint vector. More...
 
int SO3BodyDestroyBasicJointUpVector (mmachine m)
 SO3BodyDestroyBasicJointUpVector : Destroying an up joint vector. More...
 
int SO3BodySetForce (mmachine m)
 SO3BodySetForce : Set a force to a body. More...
 
int SO3BodyAddForce (mmachine m)
 SO3BodyAddForce : Add a force to a body. More...
 
int SO3BodyGetForce (mmachine m)
 SO3BodyGetForce : Get the current force of a body. More...
 
int SO3BodySetConstantForce (mmachine m)
 SO3BodySetConstantForce : Set a force to a body that will be constant each frame. More...
 
int SO3BodyAddConstantForce (mmachine m)
 SO3BodyAddConstantForce : Add a force to a body that will be constant each frame. More...
 
int SO3BodyGetConstantForce (mmachine m)
 SO3BodyGetConstantForce : Get the current constant force of a body. More...
 
int SO3BodySetConstantTorque (mmachine m)
 SO3BodySetConstantTorque : Set a constant torque force to a body that will be constant each frame. More...
 
int SO3BodyAddConstantTorque (mmachine m)
 SO3BodyAddConstantTorque : Add a torque force to a body that will be constant each frame. More...
 
int SO3BodyGetConstantTorque (mmachine m)
 SO3BodyGetConstantTorque : Get the current constant torque of a body. More...
 
int SO3BodyAddGlobalForce (mmachine m)
 SO3BodyAddGlobalForce : Add a global force to a body. More...
 
int SO3BodyAddLocalForce (mmachine m)
 SO3BodyAddLocalForce : Add a local force to a body. More...
 
int SO3BodyAddTorque (mmachine m)
 SO3BodyAddTorque : Add torque vector to a body. More...
 
int SO3BodySetTorque (mmachine m)
 SO3BodySetTorque : Set a torque to a body. More...
 
int SO3BodySetOmega (mmachine m)
 SO3BodySetOmega : Set an omega to a body. More...
 
int SO3BodySetVelocity (mmachine m)
 SO3BodySetVelocity : Set a velocity to a body. More...
 
int SO3BodyAddImpulse (mmachine m)
 SO3BodyAddImpulse : Add an impulsion to a body. More...
 
int SO3BodyMoveTo (mmachine m)
 SO3BodyMoveTo : Move a body to a position using forces. More...
 
int SO3BodyRotateTo (mmachine m)
 SO3BodyRotateTo : Rotate a body to a orientation using forces. More...
 
int SO3BodySetPositionOrientation (mmachine m)
 SO3BodySetPositionOrientation : Set Position/Orientation of a body DO NOT USE. More...
 
int SO3BodySetAngularDamping (mmachine m)
 SO3BodySetAngularDamping : defines angular Damping of a body. More...
 
int SO3BodySetCenterOfMass (mmachine m)
 SO3BodySetCenterOfMass : defines center of mass for a body. More...
 
int SO3BodySetMassMatrix (mmachine m)
 SO3BodySetMassMatrix : defines mass matrix of a body. More...
 
int SO3BodyGetAngularDamping (mmachine m)
 SO3BodyGetAngularDamping : Get the angular damping of a body. More...
 
int SO3BodyGetOmega (mmachine m)
 SO3BodyGetOmega : Get the omega of a body. More...
 
int SO3BodySetLinearDamping (mmachine m)
 SO3BodySetLinearDamping : defines linear damping of a body. More...
 
int SO3BodySetAutoSleep (mmachine m)
 SO3BodySetAutoSleep : defines Auto sleep state of a body. More...
 
int SO3BodySetType (mmachine m)
 SO3BodySetType : Defines a user type of body. More...
 
int SO3BodySetIgnoreCollision (mmachine m)
 SO3BodySetIgnoreCollision : Define if a body must be ignored when a collision occure. More...
 
int SO3BodyGetIgnoreCollision (mmachine m)
 SO3BodyGetIgnoreCollision : Retrieve the ignore collision state of a body. More...
 
int SO3BodySetContiniousCollisionMode (mmachine m)
 SO3BodySetContiniousCollisionMode : defines continuous collision mode of a body. More...
 
int SO3BodySetFluid (mmachine m)
 SO3BodySetFluid : defines a body as a fluid behavior. More...
 
int SO3BodyGetFluid (mmachine m)
 SO3BodyGetFluid : Retrieve the fluid state of a body. More...
 
int SO3BodySetFluidVolumeRatio (mmachine m)
 SO3BodySetFluidVolumeRatio : Set a body fluid parameters. More...
 
int SO3BodyGetFluidVolumeRatio (mmachine m)
 SO3BodyGetFluidVolumeRatio : get the fluid parameters of a body. More...
 
int SO3BodyCalculateOffset (mmachine m)
 SO3BodyCalculateOffset : calculate the mass offset of a body. More...
 
int SO3BodyGetLinearDamping (mmachine m)
 SO3BodyGetLinearDamping : Get the linear damping of a body. More...
 
int SO3BodyGetInvMass (mmachine m)
 SO3BodyGetInvMass : Get the inverse mass matrix of a body. More...
 
int SO3BodyGetMassMatrix (mmachine m)
 SO3BodyGetMassMatrix : Get the mass matrix of a body. More...
 
int SO3BodyGetAutoSleep (mmachine m)
 SO3BodyGetAutoSleep : Get the auto sleep state of a body. More...
 
int SO3BodyGetSleepingState (mmachine m)
 SO3BodyGetSleepingState : Get the sleep state of a body. More...
 
int SO3BodyGetType (mmachine m)
 SO3BodyGetType : Returns the user type of body. More...
 
int SO3BodyGetContiniousCollisionMode (mmachine m)
 SO3BodyGetContiniousCollisionMode : Get the continuous collision mode of a body. More...
 
int SO3BodyGetCenterOfMass (mmachine m)
 SO3BodyGetCenterOfMass : Get the center of masse of a body. More...
 
int SO3BodyGetVelocity (mmachine m)
 SO3BodyGetVelocity : Get the velocity of a body. More...
 
int SO3BodyGetTorque (mmachine m)
 SO3BodyGetTorque : Get the torque of a body. More...
 
int SO3BodyGetPositionOrientation (mmachine m)
 SO3BodyGetPositionOrientation : Get the position/orientation of a body. More...
 
int SO3BodySetFreeze (mmachine m)
 SO3BodySetFreeze : Set a body to freeze state. More...
 
int SO3BodyGetFreeze (mmachine m)
 SO3BodyGetFreeze : Get freeze state of a body. More...
 
int SO3BodySetSimulation (mmachine m)
 SO3BodySetSimulation : Enable or disable a body simulation. More...
 
int SO3BodyGetSimulation (mmachine m)
 SO3BodyGetSimulation : Get simulation state of a body. More...
 
int SO3BodySetGravityEnable (mmachine m)
 SO3BodySetGravityEnable : Set a body to freeze state. More...
 
int SO3BodyGetGravityEnable (mmachine m)
 SO3BodyGetGravityEnable : Get freeze state of a body. More...
 
int SO3BodyGetSceneNode (mmachine m)
 SO3BodyGetSceneNode : Get the scene Node asssociated to a body. More...
 
int SO3BodyDestroy (mmachine m)
 SO3BodyDestroy : Destroy a body. More...
 
int SO3BodyShowDebug (mmachine m)
 SO3BodyShowDebug : Set the body shape visible state. More...
 
int SO3SceneNodeGetBody (mmachine m)
 SO3SceneNodeGetBody : Get the body attached to a node. More...
 
int SO3PhysicsRayCast (mmachine m)
 SO3PhysicsRayCast : send a raycast and return the distance. More...
 
int SO3PhysicsRayCastExt (mmachine m)
 SO3PhysicsRayCastExt : send a raycast all the hit bodies. More...
 
int SO3PhysicsContraintDestroy (mmachine m)
 SO3PhysicsContraintDestroy : Destroy a physic contraint. More...
 
int SO3PhysicsContraintSetCollisionState (mmachine m)
 SO3PhysicsContraintSetCollisionState : Set a physic contraint collision state between the son and the parent body. More...
 
int SO3PhysicsContraintGetCollisionState (mmachine m)
 SO3PhysicsContraintGetCollisionState : Get a physic contraint collision state between the son and the parent body. More...
 
int SO3PhysicsContraintSetStiffness (mmachine m)
 SO3PhysicsContraintSetStiffness : Set a physic contraint stiffness value. More...
 
int SO3PhysicsContraintGetStiffness (mmachine m)
 SO3PhysicsContraintGetStiffness : Get a physic contraint stiffness value. More...
 
int SO3PhysicsContraintCreateBallAndSocket (mmachine m)
 SO3PhysicsContraintCreateBallAndSocket : Create a physic ball and socket contraint. More...
 
int SO3PhysicsContraintSetBallAndSocketLimits (mmachine m)
 SO3PhysicsContraintSetBallAndSocketLimits : Set a physic ball and socket contraint cone limits. More...
 
int SO3PhysicsContraintSetBallAndSocketControlled (mmachine m)
 SO3PhysicsContraintSetBallAndSocketControlled : Set a physic ball and socket contraint controlled mode. More...
 
int SO3PhysicsContraintSetBallAndSocketAngularVelocity (mmachine m)
 SO3PhysicsContraintSetBallAndSocketAngularVelocity : Set a physic ball and socket contraint angular velocity The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled. More...
 
int SO3PhysicsContraintSetBallAndSocketYawAngle (mmachine m)
 SO3PhysicsContraintSetBallAndSocketYawAngle : Set a physic ball and socket contraint Yaw angle The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled. More...
 
int SO3PhysicsContraintSetBallAndSocketPitchAngle (mmachine m)
 SO3PhysicsContraintSetBallAndSocketPitchAngle : Set a physic ball and socket contraint Pitch angle The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled. More...
 
int SO3PhysicsContraintSetBallAndSocketRollAngle (mmachine m)
 SO3PhysicsContraintSetBallAndSocketRollAngle : Set a physic ball and socket contraint Roll angle The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled. More...
 
int SO3PhysicsContraintGetBallAndSocketAngle (mmachine m)
 SO3PhysicsContraintGetBallAndSocketAngle : Get a physic ball and socket contraint angle. More...
 
int SO3PhysicsContraintGetBallAndSocketOmega (mmachine m)
 SO3PhysicsContraintGetBallAndSocketOmega : Get a physic ball and socket contraint omega. More...
 
int SO3PhysicsContraintGetBallAndSocketForce (mmachine m)
 SO3PhysicsContraintGetBallAndSocketForce : Get a physic ball and socket contraint force. More...
 
int SO3PhysicsContraintCreateHinge (mmachine m)
 SO3PhysicsContraintCreateHinge : Create a hinge contraint. More...
 
int SO3PhysicsContraintGetHingeAngle (mmachine m)
 SO3PhysicsContraintGetHingeAngle : Get a physic hinge contraint angle. More...
 
int SO3PhysicsContraintGetHingeOmega (mmachine m)
 SO3PhysicsContraintGetHingeOmega : Get a physic hinge contraint omega. More...
 
int SO3PhysicsContraintGetHingeForce (mmachine m)
 SO3PhysicsContraintGetHingeForce : Get a physic hinge contraint force. More...
 
int SO3PhysicsContraintSetHingeLimits (mmachine m)
 SO3PhysicsContraintSetHingeLimits : Set a physic hinge contraint angle limits. More...
 
int SO3PhysicsContraintSetHingeMotorAngle (mmachine m)
 SO3PhysicsContraintSetHingeMotorAngle : Set a physic hinge contraint to an angle. More...
 
int SO3PhysicsContraintSetHingeMotorOmega (mmachine m)
 SO3PhysicsContraintSetHingeMotorOmega : Set a physic hinge contraint omega. More...
 
int SO3PhysicsContraintSetHingeTorque (mmachine m)
 SO3PhysicsContraintSetHingeTorque : Set a physic hinge contraint torque. More...
 
int SO3PhysicsContraintSetHingeBrake (mmachine m)
 SO3PhysicsContraintSetHingeBrake : Set a physic hinge contraint brake. More...
 
int SO3PhysicsContraintSetHingeMotorEnable (mmachine m)
 SO3PhysicsContraintSetHingeMotorEnable : set a physic hinge contraint motor state. More...
 
int SO3PhysicsContraintCreateSlider (mmachine m)
 SO3PhysicsContraintCreateSlider : Create a slider contraint. More...
 
int SO3PhysicsContraintGetSliderVelocity (mmachine m)
 SO3PhysicsContraintGetSliderVelocity : Get a physic hinge contraint velocity. More...
 
int SO3PhysicsContraintGetSliderForce (mmachine m)
 SO3PhysicsContraintGetSliderForce : Get a physic slider contraint force. More...
 
int SO3PhysicsContraintGetSliderPosition (mmachine m)
 SO3PhysicsContraintGetSliderPosition : Get a physic slider contraint position. More...
 
int SO3PhysicsContraintSetSliderLimits (mmachine m)
 SO3PhysicsContraintSetSliderLimits : Set a physic slider contraint distance limits. More...
 
int SO3PhysicsContraintSetSliderSpring (mmachine m)
 SO3PhysicsContraintSetSliderSpring : Set a physic slider contraint spring setting. More...
 
int SO3PhysicsContraintSetSliderFriction (mmachine m)
 SO3PhysicsContraintSetSliderFriction : Set a physic slider contraint friction. More...
 
int SO3PhysicsContraintSetSliderMotorEnable (mmachine m)
 SO3PhysicsContraintSetSliderMotorEnable : set a physic slider contraint motor state. More...
 
int SO3PhysicsContraintSetSliderMotorVelocity (mmachine m)
 SO3PhysicsContraintSetSliderMotorVelocity : Set a physic slider contraint velocity. More...
 
int SO3PhysicsContraintCreateVehicle (mmachine m)
 SO3PhysicsContraintCreateVehicle : Create a vehicle contraint. More...
 
int SO3PhysicsContraintAddVehicleTire (mmachine m)
 SO3PhysicsContraintAddVehicleTire : Add a physic vehicle contraint tire. More...
 
int SO3PhysicsContraintGetVehicleSpeed (mmachine m)
 SO3PhysicsContraintGetVehicleSpeed : Get a physic vehicle contraint speed. More...
 
int SO3PhysicsContraintSetVehicleSteerAngle (mmachine m)
 SO3PhysicsContraintSetVehicleSteerAngle : Set a physic vehicle contraint steer angle. More...
 
int SO3PhysicsContraintSetVehicleDrivingTorque (mmachine m)
 SO3PhysicsContraintSetVehicleDrivingTorque : Set a physic vehicle contraint driving torque. More...
 
int SO3PhysicsContraintSetVehicleBrake (mmachine m)
 SO3PhysicsContraintSetVehicleBrake : Set a physic vehicle contraint brake. More...
 
int SO3PhysicsContraintGetVehicleOnAir (mmachine m)
 SO3PhysicsContraintGetVehicleOnAir : Get if a physic vehicle contraint has tires on the ground. More...
 
int SO3PhysicsContraintGetVehicleTireAngularVelocity (mmachine m)
 SO3PhysicsContraintGetVehicleTireAngularVelocity : Get a physic vehicle contraint tire angular velocity. More...
 
int SO3PhysicsContraintGetVehicleTireOnAir (mmachine m)
 SO3PhysicsContraintGetVehicleTireOnAir : Get a physic vehicle contraint tire on air state. More...
 
int SO3BodySetMaterial (mmachine m)
 SO3BodySetMaterial : Set a material for a body. More...
 
int SO3BodyGetMaterial (mmachine m)
 SO3BodyGetMaterial : Get a material of a body. More...
 
int SO3PhysicsMaterialCreate (mmachine m)
 SO3PhysicsMaterialCreate : Create a new Physic Material ID. More...
 
int SO3PhysicsMaterialDestroy (mmachine m)
 SO3PhysicsMaterialDestroy : Destroy a Physic Material ID. More...
 
int SO3PhysicsGetMaterial (mmachine m)
 SO3PhysicsGetMaterial : return a material Physics by its name. More...
 
int SO3PhysicsGetMaterialName (mmachine m)
 SO3PhysicsGetMaterialName : return the name of a Physics material. More...
 
int SO3PhysicsMaterialSetSurfaceThickness (mmachine m)
 SO3PhysicsMaterialSetSurfaceThickness : defines Surface thickness between two physics material. More...
 
int SO3PhysicsMaterialSetDefaultElasticity (mmachine m)
 SO3PhysicsMaterialSetDefaultElasticity : defines Default elasticity between two physics material. More...
 
int SO3PhysicsMaterialSetDefaultFriction (mmachine m)
 SO3PhysicsMaterialSetDefaultFriction : defines Default friction between two physics material. More...
 
int SO3PhysicsMaterialSetDefaultSoftness (mmachine m)
 SO3PhysicsMaterialSetDefaultSoftness : defines Default softness between two physics material. More...
 
int SO3PhysicsMaterialSetDefaultCollidable (mmachine m)
 SO3PhysicsMaterialSetDefaultCollidable : defines Default Collidable state between two physics material. More...
 
int SO3PhysicsMaterialSetContiniousCollisionMode (mmachine m)
 SO3PhysicsMaterialSetContiniousCollisionMode : do nothing deprecated. More...
 
int SO3WorldApplyImpulsePoint (mmachine m)
 SO3WorldApplyImpulsePoint : Apply an impulsion on bodies in the point area. More...
 

Detailed Description

Scol functions definition

Function Documentation

◆ SO3BodyAddConstantForce()

int SO3BodyAddConstantForce ( mmachine  m)

SO3BodyAddConstantForce : Add a force to a body that will be constant each frame.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 2908 of file SCOLPhysics.cpp.

◆ SO3BodyAddConstantTorque()

int SO3BodyAddConstantTorque ( mmachine  m)

SO3BodyAddConstantTorque : Add a torque force to a body that will be constant each frame.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 3047 of file SCOLPhysics.cpp.

◆ SO3BodyAddForce()

int SO3BodyAddForce ( mmachine  m)

SO3BodyAddForce : Add a force to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 2768 of file SCOLPhysics.cpp.

◆ SO3BodyAddGlobalForce()

int SO3BodyAddGlobalForce ( mmachine  m)

SO3BodyAddGlobalForce : Add a global force to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 3139 of file SCOLPhysics.cpp.

◆ SO3BodyAddImpulse()

int SO3BodyAddImpulse ( mmachine  m)

SO3BodyAddImpulse : Add an impulsion to a body.

Prototype: fun [SO3_PHYSICBODY [F F F] [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : delta
[FF F] : source position
Returns
I : 1 if success, NIL otherwise

Definition at line 3428 of file SCOLPhysics.cpp.

◆ SO3BodyAddLocalForce()

int SO3BodyAddLocalForce ( mmachine  m)

SO3BodyAddLocalForce : Add a local force to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 3187 of file SCOLPhysics.cpp.

◆ SO3BodyAddTorque()

int SO3BodyAddTorque ( mmachine  m)

SO3BodyAddTorque : Add torque vector to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Torque
Returns
I : 1 if success, NIL otherwise

Definition at line 3235 of file SCOLPhysics.cpp.

◆ SO3BodyCalculateOffset()

int SO3BodyCalculateOffset ( mmachine  m)

SO3BodyCalculateOffset : calculate the mass offset of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : vector of the offset if success, NIL otherwise

Definition at line 4257 of file SCOLPhysics.cpp.

◆ SO3BodyCreateBasicJointUpVector()

int SO3BodyCreateBasicJointUpVector ( mmachine  m)

SO3BodyCreateBasicJointUpVector : Create an up joint vector.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Joint vector
Returns
I : 1 if success, NIL otherwise

Definition at line 2643 of file SCOLPhysics.cpp.

◆ SO3BodyCreateBox()

int SO3BodyCreateBox ( mmachine  m)

SO3BodyCreateBox : Create a body as a box shape.

Prototype: fun [SO3_OBJECT [F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
[FF F] : Box dimensions
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1110 of file SCOLPhysics.cpp.

◆ SO3BodyCreateBoxExt()

int SO3BodyCreateBoxExt ( mmachine  m)

SO3BodyCreateBoxExt : Create a body as a box shape.

Prototype: fun [SO3_OBJECT [F F F] [F F F] [F F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
[FF F] : Box dimensions
[FF F] : position offset
[FF F F] : orientation offset
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1618 of file SCOLPhysics.cpp.

◆ SO3BodyCreateCapsule()

int SO3BodyCreateCapsule ( mmachine  m)

SO3BodyCreateCapsule : Create a body as a capsule shape.

Prototype: fun [SO3_OBJECT F F] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1263 of file SCOLPhysics.cpp.

◆ SO3BodyCreateCapsuleExt()

int SO3BodyCreateCapsuleExt ( mmachine  m)

SO3BodyCreateCapsuleExt : Create a body as a capsule shape.

Prototype: fun [SO3_OBJECT F F [F F F] [F F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
[FF F] : position offset
[FF F F] : orientation offset
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1841 of file SCOLPhysics.cpp.

◆ SO3BodyCreateChamferCylinder()

int SO3BodyCreateChamferCylinder ( mmachine  m)

SO3BodyCreateChamferCylinder : Create a body as a chamfer cylinder shape.

Prototype: fun [SO3_OBJECT F F] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1338 of file SCOLPhysics.cpp.

◆ SO3BodyCreateChamferCylinderExt()

int SO3BodyCreateChamferCylinderExt ( mmachine  m)

SO3BodyCreateChamferCylinderExt : Create a body as a chamfer cylinder shape.

Prototype: fun [SO3_OBJECT F F [F F F] [F F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
[FF F] : position offset
[FF F F] : orientation offset
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1946 of file SCOLPhysics.cpp.

◆ SO3BodyCreateCollisionTree()

int SO3BodyCreateCollisionTree ( mmachine  m)

SO3BodyCreateCollisionTree : Create a body as an exact collision tree.

Prototype: fun [SO3_OBJECT I] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node associated with a mesh
I: 1 for optimized shape, 0 otherwise
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 2370 of file SCOLPhysics.cpp.

◆ SO3BodyCreateConcaveShape()

int SO3BodyCreateConcaveShape ( mmachine  m)

SO3BodyCreateConcaveShape : Create a body as a shape (automatic calculation)

Prototype: fun [SO3_OBJECT F] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node associated with a mesh
F: float tolerance 0 for best quality
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 2521 of file SCOLPhysics.cpp.

◆ SO3BodyCreateCone()

int SO3BodyCreateCone ( mmachine  m)

SO3BodyCreateCone : Create a body as a cone shape.

Prototype: fun [SO3_OBJECT F F] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1406 of file SCOLPhysics.cpp.

◆ SO3BodyCreateConeExt()

int SO3BodyCreateConeExt ( mmachine  m)

SO3BodyCreateConeExt : Create a body as a cone shape.

Prototype: fun [SO3_OBJECT F F [F F F] [F F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
[FF F] : position offset
[FF F F] : orientation offset
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 2051 of file SCOLPhysics.cpp.

◆ SO3BodyCreateCylinder()

int SO3BodyCreateCylinder ( mmachine  m)

SO3BodyCreateCylinder : Create a body as a cylinder shape.

Prototype: fun [SO3_OBJECT F F] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1474 of file SCOLPhysics.cpp.

◆ SO3BodyCreateCylinderExt()

int SO3BodyCreateCylinderExt ( mmachine  m)

SO3BodyCreateCylinderExt : Create a body as a cylinder shape.

Prototype: fun [SO3_OBJECT F F [F F F] [F F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
F: Radius value
F: Height value
[FF F] : position offset
[FF F F] : orientation offset
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 2157 of file SCOLPhysics.cpp.

◆ SO3BodyCreateEllipsoid()

int SO3BodyCreateEllipsoid ( mmachine  m)

SO3BodyCreateEllipsoid : Create a body as an ellipsoid shape.

Prototype: fun [SO3_OBJECT [F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
[FF F] : Ellispoid dimensions
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1186 of file SCOLPhysics.cpp.

◆ SO3BodyCreateEllipsoidExt()

int SO3BodyCreateEllipsoidExt ( mmachine  m)

SO3BodyCreateEllipsoidExt : Create a body as an ellipsoid shape.

Prototype: fun [SO3_OBJECT [F F F] [F F F] [F F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
[FF F] : Ellispoid dimensions
[FF F] : position offset
[FF F F] : orientation offset
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1729 of file SCOLPhysics.cpp.

◆ SO3BodyCreatePyramid()

int SO3BodyCreatePyramid ( mmachine  m)

SO3BodyCreatePyramid : Create a body as a pyramid shape.

Prototype: fun [SO3_OBJECT [F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
[FF F] : Pyramid Dimensions
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1540 of file SCOLPhysics.cpp.

◆ SO3BodyCreatePyramidExt()

int SO3BodyCreatePyramidExt ( mmachine  m)

SO3BodyCreatePyramidExt : Create a body as a pyramid shape.

Prototype: fun [SO3_OBJECT [F F F] [F F F] [F F F F]] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
[FF F] : Pyramid Dimensions
[FF F] : position offset
[FF F F] : orientation offset
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 2261 of file SCOLPhysics.cpp.

◆ SO3BodyCreateShape()

int SO3BodyCreateShape ( mmachine  m)

SO3BodyCreateShape : Create a body as a shape (automatic calculation)

Prototype: fun [SO3_OBJECT F] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node associated with a mesh
F: float tolerance 0 for best quality
Returns
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 2437 of file SCOLPhysics.cpp.

◆ SO3BodyDestroy()

int SO3BodyDestroy ( mmachine  m)

SO3BodyDestroy : Destroy a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : 1 if success, NIL otherwise

Definition at line 5078 of file SCOLPhysics.cpp.

◆ SO3BodyDestroyBasicJointUpVector()

int SO3BodyDestroyBasicJointUpVector ( mmachine  m)

SO3BodyDestroyBasicJointUpVector : Destroying an up joint vector.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICCONTRAINT: current joint to destroy
Returns
I : 1 if success, NIL otherwise

Definition at line 2683 of file SCOLPhysics.cpp.

◆ SO3BodyGetAngularDamping()

int SO3BodyGetAngularDamping ( mmachine  m)

SO3BodyGetAngularDamping : Get the angular damping of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : Angular damping if success, NIL otherwise

Definition at line 3800 of file SCOLPhysics.cpp.

◆ SO3BodyGetAutoSleep()

int SO3BodyGetAutoSleep ( mmachine  m)

SO3BodyGetAutoSleep : Get the auto sleep state of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : AutoSleep state (1 enable, 0 disable) if success, NIL otherwise

Definition at line 4459 of file SCOLPhysics.cpp.

◆ SO3BodyGetCenterOfMass()

int SO3BodyGetCenterOfMass ( mmachine  m)

SO3BodyGetCenterOfMass : Get the center of masse of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : vector for the center of mass if success, NIL otherwise

Definition at line 4597 of file SCOLPhysics.cpp.

◆ SO3BodyGetConstantForce()

int SO3BodyGetConstantForce ( mmachine  m)

SO3BodyGetConstantForce : Get the current constant force of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : current constant force if success, NIL otherwise

Definition at line 2955 of file SCOLPhysics.cpp.

◆ SO3BodyGetConstantTorque()

int SO3BodyGetConstantTorque ( mmachine  m)

SO3BodyGetConstantTorque : Get the current constant torque of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : current constant torque if success, NIL otherwise

Definition at line 3094 of file SCOLPhysics.cpp.

◆ SO3BodyGetContiniousCollisionMode()

int SO3BodyGetContiniousCollisionMode ( mmachine  m)

SO3BodyGetContiniousCollisionMode : Get the continuous collision mode of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : continuous collision mode (1 enable, 0 disable) if success, NIL otherwise

Definition at line 4563 of file SCOLPhysics.cpp.

◆ SO3BodyGetFluid()

int SO3BodyGetFluid ( mmachine  m)

SO3BodyGetFluid : Retrieve the fluid state of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : return 1 if the body is fluid 0 if not, NIL otherwise

Definition at line 4153 of file SCOLPhysics.cpp.

◆ SO3BodyGetFluidVolumeRatio()

int SO3BodyGetFluidVolumeRatio ( mmachine  m)

SO3BodyGetFluidVolumeRatio : get the fluid parameters of a body.

Prototype: fun [SO3_PHYSICBODY] F

Parameters
SO3_PHYSICBODY: current body
Returns
F : the fluid volume to water ratio if success, NIL otherwise

Definition at line 4225 of file SCOLPhysics.cpp.

◆ SO3BodyGetForce()

int SO3BodyGetForce ( mmachine  m)

SO3BodyGetForce : Get the current force of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : current force if success, NIL otherwise

Definition at line 2815 of file SCOLPhysics.cpp.

◆ SO3BodyGetFreeze()

int SO3BodyGetFreeze ( mmachine  m)

SO3BodyGetFreeze : Get freeze state of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : boolean (0 true, 0 false) if success, NIL otherwise

Definition at line 4843 of file SCOLPhysics.cpp.

◆ SO3BodyGetGravityEnable()

int SO3BodyGetGravityEnable ( mmachine  m)

SO3BodyGetGravityEnable : Get freeze state of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : boolean (0 true, 0 false) if success, NIL otherwise

Definition at line 5004 of file SCOLPhysics.cpp.

◆ SO3BodyGetIgnoreCollision()

int SO3BodyGetIgnoreCollision ( mmachine  m)

SO3BodyGetIgnoreCollision : Retrieve the ignore collision state of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : return 1 if the body have the ignore state else 0, NIL otherwise

Definition at line 4040 of file SCOLPhysics.cpp.

◆ SO3BodyGetInvMass()

int SO3BodyGetInvMass ( mmachine  m)

SO3BodyGetInvMass : Get the inverse mass matrix of a body.

Prototype: fun [SO3_PHYSICBODY] [F [F F F]]

Parameters
SO3_PHYSICBODY: current body
Returns
[F [F F F]] : Inverse Mass Matrix if success, NIL otherwise

Definition at line 4335 of file SCOLPhysics.cpp.

◆ SO3BodyGetLinearDamping()

int SO3BodyGetLinearDamping ( mmachine  m)

SO3BodyGetLinearDamping : Get the linear damping of a body.

Prototype: fun [SO3_PHYSICBODY] F

Parameters
SO3_PHYSICBODY: current body
Returns
F : Linear damping if success, NIL otherwise

Definition at line 4301 of file SCOLPhysics.cpp.

◆ SO3BodyGetMassMatrix()

int SO3BodyGetMassMatrix ( mmachine  m)

SO3BodyGetMassMatrix : Get the mass matrix of a body.

Prototype: fun [SO3_PHYSICBODY] [F [F F F]]

Parameters
SO3_PHYSICBODY: current body
Returns
[F [F F F]] : Mass Matrix if success, NIL otherwise

Definition at line 4398 of file SCOLPhysics.cpp.

◆ SO3BodyGetMaterial()

int SO3BodyGetMaterial ( mmachine  m)

SO3BodyGetMaterial : Get a material of a body.

Prototype: fun [SO3_PHYSICBODY] SO3_PHYSICMATERIAL

Parameters
SO3_PHYSICBODY: current node
Returns
SO3_PHYSICMATERIAL : the material ID if success, NIL otherwise

Definition at line 7605 of file SCOLPhysics.cpp.

◆ SO3BodyGetOmega()

int SO3BodyGetOmega ( mmachine  m)

SO3BodyGetOmega : Get the omega of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : omega if success, NIL otherwise

Definition at line 3844 of file SCOLPhysics.cpp.

◆ SO3BodyGetPositionOrientation()

int SO3BodyGetPositionOrientation ( mmachine  m)

SO3BodyGetPositionOrientation : Get the position/orientation of a body.

Prototype: fun [SO3_PHYSICBODY] [[F F F] [F F F F]]

Parameters
SO3_PHYSICBODY: current body
Returns
[[F F F] [F F F F]] : position/orientation if success, NIL otherwise
  • [F F F] : position (vector)
  • [F F F f] : orientation (quaternion)

Definition at line 4731 of file SCOLPhysics.cpp.

◆ SO3BodyGetSceneNode()

int SO3BodyGetSceneNode ( mmachine  m)

SO3BodyGetSceneNode : Get the scene Node asssociated to a body.

Prototype: fun [SO3_PHYSICBODY] SO3_OBJECT

Parameters
SO3_PHYSICBODY: current body
Returns
SO3_OBJECT : the node if success, NIL otherwise

Definition at line 5041 of file SCOLPhysics.cpp.

◆ SO3BodyGetSimulation()

int SO3BodyGetSimulation ( mmachine  m)

SO3BodyGetSimulation : Get simulation state of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : boolean (0 true, 0 false) if success, NIL otherwise

Definition at line 4924 of file SCOLPhysics.cpp.

◆ SO3BodyGetSleepingState()

int SO3BodyGetSleepingState ( mmachine  m)

SO3BodyGetSleepingState : Get the sleep state of a body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : Sleep state (1 enable, 0 disable) if success, NIL otherwise

Definition at line 4494 of file SCOLPhysics.cpp.

◆ SO3BodyGetTorque()

int SO3BodyGetTorque ( mmachine  m)

SO3BodyGetTorque : Get the torque of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : torque if success, NIL otherwise

Definition at line 4685 of file SCOLPhysics.cpp.

◆ SO3BodyGetType()

int SO3BodyGetType ( mmachine  m)

SO3BodyGetType : Returns the user type of body.

Prototype: fun [SO3_PHYSICBODY] I

Parameters
SO3_PHYSICBODY: current body
Returns
I : type if success, NIL otherwise

Definition at line 4529 of file SCOLPhysics.cpp.

◆ SO3BodyGetVelocity()

int SO3BodyGetVelocity ( mmachine  m)

SO3BodyGetVelocity : Get the velocity of a body.

Prototype: fun [SO3_PHYSICBODY] [F F F]

Parameters
SO3_PHYSICBODY: current body
Returns
[F F F] : velocity if success, NIL otherwise

Definition at line 4641 of file SCOLPhysics.cpp.

◆ SO3BodyMoveTo()

int SO3BodyMoveTo ( mmachine  m)

SO3BodyMoveTo : Move a body to a position using forces.

Prototype: fun [SO3_PHYSICBODY [F F F] F] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : global destination position
F: stiffness between 0.000001 and 1.0
Returns
I : 1 if success, NIL otherwise

Definition at line 3490 of file SCOLPhysics.cpp.

◆ SO3BodyRotateTo()

int SO3BodyRotateTo ( mmachine  m)

SO3BodyRotateTo : Rotate a body to a orientation using forces.

Prototype: fun [SO3_PHYSICBODY [F F F F] F] I

Parameters
SO3_PHYSICBODY: current body
[FF F F] : global destination oritentation
F: stiffness between 0.000001 and 1.0
Returns
I : 1 if success, NIL otherwise

Definition at line 3550 of file SCOLPhysics.cpp.

◆ SO3BodySetAngularDamping()

int SO3BodySetAngularDamping ( mmachine  m)

SO3BodySetAngularDamping : defines angular Damping of a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Angular damping (vector)
Returns
I : 1 if success, NIL otherwise

Definition at line 3655 of file SCOLPhysics.cpp.

◆ SO3BodySetAutoSleep()

int SO3BodySetAutoSleep ( mmachine  m)

SO3BodySetAutoSleep : defines Auto sleep state of a body.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: Auto sleeping boolean(1 enable, 0 disable)
Returns
I : 1 if success, NIL otherwise

Definition at line 3925 of file SCOLPhysics.cpp.

◆ SO3BodySetCenterOfMass()

int SO3BodySetCenterOfMass ( mmachine  m)

SO3BodySetCenterOfMass : defines center of mass for a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Center of Mass (vector)
Returns
I : 1 if success, NIL otherwise

Definition at line 3703 of file SCOLPhysics.cpp.

◆ SO3BodySetConstantForce()

int SO3BodySetConstantForce ( mmachine  m)

SO3BodySetConstantForce : Set a force to a body that will be constant each frame.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 2860 of file SCOLPhysics.cpp.

◆ SO3BodySetConstantTorque()

int SO3BodySetConstantTorque ( mmachine  m)

SO3BodySetConstantTorque : Set a constant torque force to a body that will be constant each frame.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 2999 of file SCOLPhysics.cpp.

◆ SO3BodySetContiniousCollisionMode()

int SO3BodySetContiniousCollisionMode ( mmachine  m)

SO3BodySetContiniousCollisionMode : defines continuous collision mode of a body.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: Continuous boolean(1 enable, 0 disable)
Returns
I : 1 if success, NIL otherwise

Definition at line 4075 of file SCOLPhysics.cpp.

◆ SO3BodySetFluid()

int SO3BodySetFluid ( mmachine  m)

SO3BodySetFluid : defines a body as a fluid behavior.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: fluid state (1 enable, 0 disable)
Returns
I : 1 if success, NIL otherwise

Definition at line 4115 of file SCOLPhysics.cpp.

◆ SO3BodySetFluidVolumeRatio()

int SO3BodySetFluidVolumeRatio ( mmachine  m)

SO3BodySetFluidVolumeRatio : Set a body fluid parameters.

Prototype: fun [SO3_PHYSICBODY F] I

Parameters
SO3_PHYSICBODY: current body
F: the fluid to volume ratio
Returns
I : 1 if success, NIL otherwise

Definition at line 4189 of file SCOLPhysics.cpp.

◆ SO3BodySetForce()

int SO3BodySetForce ( mmachine  m)

SO3BodySetForce : Set a force to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Force
Returns
I : 1 if success, NIL otherwise

Definition at line 2719 of file SCOLPhysics.cpp.

◆ SO3BodySetFreeze()

int SO3BodySetFreeze ( mmachine  m)

SO3BodySetFreeze : Set a body to freeze state.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: freeze state
Returns
I : 1 if success, NIL otherwise

Definition at line 4801 of file SCOLPhysics.cpp.

◆ SO3BodySetGravityEnable()

int SO3BodySetGravityEnable ( mmachine  m)

SO3BodySetGravityEnable : Set a body to freeze state.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: freez state
Returns
I : 1 if success, NIL otherwise

Definition at line 4962 of file SCOLPhysics.cpp.

◆ SO3BodySetIgnoreCollision()

int SO3BodySetIgnoreCollision ( mmachine  m)

SO3BodySetIgnoreCollision : Define if a body must be ignored when a collision occure.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: 1 to ignore 0 otherwise
Returns
I : same state if success, NIL otherwise

Definition at line 4001 of file SCOLPhysics.cpp.

◆ SO3BodySetInitialState()

int SO3BodySetInitialState ( mmachine  m)

SO3BodySetInitialState : Set the current PRS as initial PRS to this body.

Prototype: fun [SO3_SCENE] I

Parameters
SO3_BODY: current body
Returns
I : 1 if success, NIL otherwise

Definition at line 924 of file SCOLPhysics.cpp.

◆ SO3BodySetLinearDamping()

int SO3BodySetLinearDamping ( mmachine  m)

SO3BodySetLinearDamping : defines linear damping of a body.

Prototype: fun [SO3_PHYSICBODY F] I

Parameters
SO3_PHYSICBODY: current body
F: Linear damping coeffcient
Returns
I : 1 if success, NIL otherwise

Definition at line 3889 of file SCOLPhysics.cpp.

◆ SO3BodySetMass()

int SO3BodySetMass ( mmachine  m)

SO3BodySetMass : Set a mass to a body.

Prototype: fun [SO3_PHYSICBODY F] I

Parameters
SO3_PHYSICBODY: current body
F: mass value
Returns
I : 1 if success, NIL otherwise

Definition at line 2605 of file SCOLPhysics.cpp.

◆ SO3BodySetMassMatrix()

int SO3BodySetMassMatrix ( mmachine  m)

SO3BodySetMassMatrix : defines mass matrix of a body.

Prototype: fun [SO3_PHYSICBODY F [F F F]] I

Parameters
SO3_PHYSICBODY: current body
F: mass value
[FF F] : Center of Mass (vector)
Returns
I : 1 if success, NIL otherwise

Definition at line 3752 of file SCOLPhysics.cpp.

◆ SO3BodySetMaterial()

int SO3BodySetMaterial ( mmachine  m)

SO3BodySetMaterial : Set a material for a body.

Prototype: fun [SO3_PHYSICBODY SO3_PHYSICMATERIAL] I

Parameters
SO3_PHYSICBODY: current node
SO3_PHYSICMATERIAL: given material
Returns
I : 1 if success, NIL otherwise

Definition at line 7559 of file SCOLPhysics.cpp.

◆ SO3BodySetOmega()

int SO3BodySetOmega ( mmachine  m)

SO3BodySetOmega : Set an omega to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Omega
Returns
I : 1 if success, NIL otherwise

Definition at line 3331 of file SCOLPhysics.cpp.

◆ SO3BodySetPositionOrientation()

int SO3BodySetPositionOrientation ( mmachine  m)

SO3BodySetPositionOrientation : Set Position/Orientation of a body DO NOT USE.

Prototype: fun [SO3_PHYSICBODY [F F F] [F F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Position (vector)
[FF F F] : orientation (quaternion)
Returns
I : 1 if success, NIL otherwise

Definition at line 3609 of file SCOLPhysics.cpp.

◆ SO3BodySetSimulation()

int SO3BodySetSimulation ( mmachine  m)

SO3BodySetSimulation : Enable or disable a body simulation.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: state
Returns
I : 1 if success, NIL otherwise

Definition at line 4881 of file SCOLPhysics.cpp.

◆ SO3BodySetTorque()

int SO3BodySetTorque ( mmachine  m)

SO3BodySetTorque : Set a torque to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Torque
Returns
I : 1 if success, NIL otherwise

Definition at line 3283 of file SCOLPhysics.cpp.

◆ SO3BodySetType()

int SO3BodySetType ( mmachine  m)

SO3BodySetType : Defines a user type of body.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: Given type
Returns
I : same type if success, NIL otherwise

Definition at line 3965 of file SCOLPhysics.cpp.

◆ SO3BodySetVelocity()

int SO3BodySetVelocity ( mmachine  m)

SO3BodySetVelocity : Set a velocity to a body.

Prototype: fun [SO3_PHYSICBODY [F F F]] I

Parameters
SO3_PHYSICBODY: current body
[FF F] : Velocity
Returns
I : 1 if success, NIL otherwise

Definition at line 3379 of file SCOLPhysics.cpp.

◆ SO3BodyShowDebug()

int SO3BodyShowDebug ( mmachine  m)

SO3BodyShowDebug : Set the body shape visible state.

Prototype: fun [SO3_PHYSICBODY I] I

Parameters
SO3_PHYSICBODY: current body
I: 1 to show the debug, 0 to hide
Returns
I : 1 if success, NIL otherwise

Definition at line 5107 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintAddVehicleTire()

int SO3PhysicsContraintAddVehicleTire ( mmachine  m)

SO3PhysicsContraintAddVehicleTire : Add a physic vehicle contraint tire.

Prototype: fun [SO3_PHYSICCONTRAINT SO3_OBJECT F F F F F F F I I] I

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
SO3_OBJECT: tire node
F: tire mass
F: tire radius
F: tire width
F: tire friction
F: tire suspension length
F: tire suspension spring
F: tire suspension shock
I: directional tire (1 to enable, 0 or nil otherwise)
I: driving tire (1 to enable, 0 or nil otherwise)
Returns
I : 1 if success, NIL otherwise

Definition at line 7163 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintCreateBallAndSocket()

int SO3PhysicsContraintCreateBallAndSocket ( mmachine  m)

SO3PhysicsContraintCreateBallAndSocket : Create a physic ball and socket contraint.

Prototype: fun [SO3_SCENE SO3_PHYSICBODY SO3_PHYSICBODY [F F F] I] SO3_PHYSICCONTRAINT

Parameters
SO3_SCENE: current scene
SO3_PHYSICBODY: son body
SO3_PHYSICBODY: parent body (can be nil)
[FF F] : contraint position in world (for initialization)
I: 1 to use the angles limits 0 or nil otherwise
Returns
SO3_PHYSICCONTRAINT : The created contraint if success, NIL otherwise

Definition at line 5625 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintCreateHinge()

int SO3PhysicsContraintCreateHinge ( mmachine  m)

SO3PhysicsContraintCreateHinge : Create a hinge contraint.

Prototype: fun [SO3_SCENE SO3_PHYSICBODY SO3_PHYSICBODY [F F F] [F F F] I] SO3_PHYSICCONTRAINT

Parameters
SO3_SCENE: current scene
SO3_PHYSICBODY: son body
SO3_PHYSICBODY: parent body (can be nil)
[FF F] : contraint position in world (for initialization)
[FF F] : contraint direction in world (for initialization)
I: 1 to use the angles limits 0 or nil otherwise
Returns
SO3_PHYSICCONTRAINT : The created contraint if success, NIL otherwise

Definition at line 6122 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintCreateSlider()

int SO3PhysicsContraintCreateSlider ( mmachine  m)

SO3PhysicsContraintCreateSlider : Create a slider contraint.

Prototype: fun [SO3_SCENE SO3_PHYSICBODY SO3_PHYSICBODY [F F F] [F F F] I I] SO3_PHYSICCONTRAINT

Parameters
SO3_SCENE: current scene
SO3_PHYSICBODY: son body
SO3_PHYSICBODY: parent body (can be nil)
[FF F] : contraint position in world (for initialization)
[FF F] : contraint direction in world (for initialization)
I: 1 to use the distance limits, 0 or nil otherwise
I: 1 to use the spring parameters, 0 or nil otherwise
Returns
SO3_PHYSICCONTRAINT : The created contraint if success, NIL otherwise

Definition at line 6643 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintCreateVehicle()

int SO3PhysicsContraintCreateVehicle ( mmachine  m)

SO3PhysicsContraintCreateVehicle : Create a vehicle contraint.

Prototype: fun [SO3_SCENE SO3_PHYSICBODY] SO3_PHYSICCONTRAINT

Parameters
SO3_SCENE: current scene
SO3_PHYSICBODY: car body
Returns
SO3_PHYSICCONTRAINT : The created contraint if success, NIL otherwise

Definition at line 7096 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintDestroy()

int SO3PhysicsContraintDestroy ( mmachine  m)

SO3PhysicsContraintDestroy : Destroy a physic contraint.

Prototype: fun [SO3_PHYSICCONTRAINT] I

Parameters
SO3_PHYSICCONTRAINT: current contraint
Returns
I : 1 if success, NIL otherwise

Definition at line 5439 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetBallAndSocketAngle()

int SO3PhysicsContraintGetBallAndSocketAngle ( mmachine  m)

SO3PhysicsContraintGetBallAndSocketAngle : Get a physic ball and socket contraint angle.

Prototype: fun [SO3_PHYSICCONTRAINT] [F F F]

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
Returns
[F F F] : contraint angle in radian if success, NIL otherwise

Definition at line 5979 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetBallAndSocketForce()

int SO3PhysicsContraintGetBallAndSocketForce ( mmachine  m)

SO3PhysicsContraintGetBallAndSocketForce : Get a physic ball and socket contraint force.

Prototype: fun [SO3_PHYSICCONTRAINT] [F F F]

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
Returns
[F F F] : contraint force if success, NIL otherwise

Definition at line 6071 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetBallAndSocketOmega()

int SO3PhysicsContraintGetBallAndSocketOmega ( mmachine  m)

SO3PhysicsContraintGetBallAndSocketOmega : Get a physic ball and socket contraint omega.

Prototype: fun [SO3_PHYSICCONTRAINT] [F F F]

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
Returns
[F F F] : contraint omega if success, NIL otherwise

Definition at line 6025 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetCollisionState()

int SO3PhysicsContraintGetCollisionState ( mmachine  m)

SO3PhysicsContraintGetCollisionState : Get a physic contraint collision state between the son and the parent body.

Prototype: fun [SO3_PHYSICCONTRAINT] I

Parameters
SO3_PHYSICCONTRAINT: contraint
Returns
I : 1 if collide state is enable, 0 if not, NIL otherwise

Definition at line 5508 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetHingeAngle()

int SO3PhysicsContraintGetHingeAngle ( mmachine  m)

SO3PhysicsContraintGetHingeAngle : Get a physic hinge contraint angle.

Prototype: fun [SO3_PHYSICCONTRAINT] F

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
Returns
F : contraint angle in radian if success, NIL otherwise

Definition at line 6220 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetHingeForce()

int SO3PhysicsContraintGetHingeForce ( mmachine  m)

SO3PhysicsContraintGetHingeForce : Get a physic hinge contraint force.

Prototype: fun [SO3_PHYSICCONTRAINT] [F F F]

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
Returns
[F F F] : contraint force if success, NIL otherwise

Definition at line 6292 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetHingeOmega()

int SO3PhysicsContraintGetHingeOmega ( mmachine  m)

SO3PhysicsContraintGetHingeOmega : Get a physic hinge contraint omega.

Prototype: fun [SO3_PHYSICCONTRAINT] F

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
Returns
F : contraint omega if success, NIL otherwise

Definition at line 6256 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetSliderForce()

int SO3PhysicsContraintGetSliderForce ( mmachine  m)

SO3PhysicsContraintGetSliderForce : Get a physic slider contraint force.

Prototype: fun [SO3_PHYSICCONTRAINT] [F F F]

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
Returns
[F F F] : contraint force if success, NIL otherwise

Definition at line 6784 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetSliderPosition()

int SO3PhysicsContraintGetSliderPosition ( mmachine  m)

SO3PhysicsContraintGetSliderPosition : Get a physic slider contraint position.

Prototype: fun [SO3_PHYSICCONTRAINT] F

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
Returns
F : contraint distance if success, NIL otherwise

Definition at line 6830 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetSliderVelocity()

int SO3PhysicsContraintGetSliderVelocity ( mmachine  m)

SO3PhysicsContraintGetSliderVelocity : Get a physic hinge contraint velocity.

Prototype: fun [SO3_PHYSICCONTRAINT] F

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
Returns
F : contraint velocity if success, NIL otherwise

Definition at line 6748 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetStiffness()

int SO3PhysicsContraintGetStiffness ( mmachine  m)

SO3PhysicsContraintGetStiffness : Get a physic contraint stiffness value.

Prototype: fun [SO3_PHYSICCONTRAINT] F

Parameters
SO3_PHYSICCONTRAINT: contraint
Returns
F : Stiffness value, NIL otherwise

Definition at line 5585 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetVehicleOnAir()

int SO3PhysicsContraintGetVehicleOnAir ( mmachine  m)

SO3PhysicsContraintGetVehicleOnAir : Get if a physic vehicle contraint has tires on the ground.

Prototype: fun [SO3_PHYSICCONTRAINT] I

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
Returns
I : 1 if the vehicle has the tires on the ground, 0 if not, NIL otherwise

Definition at line 7414 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetVehicleSpeed()

int SO3PhysicsContraintGetVehicleSpeed ( mmachine  m)

SO3PhysicsContraintGetVehicleSpeed : Get a physic vehicle contraint speed.

Prototype: fun [SO3_PHYSICCONTRAINT] F

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
Returns
F : speed in meter per second if success, NIL otherwise

Definition at line 7252 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetVehicleTireAngularVelocity()

int SO3PhysicsContraintGetVehicleTireAngularVelocity ( mmachine  m)

SO3PhysicsContraintGetVehicleTireAngularVelocity : Get a physic vehicle contraint tire angular velocity.

Prototype: fun [SO3_PHYSICCONTRAINT] F

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
SO3_OBJECT: Object used for the tire
Returns
F : The tire angular velocity if success, NIL otherwise

Definition at line 7449 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintGetVehicleTireOnAir()

int SO3PhysicsContraintGetVehicleTireOnAir ( mmachine  m)

SO3PhysicsContraintGetVehicleTireOnAir : Get a physic vehicle contraint tire on air state.

Prototype: fun [SO3_PHYSICCONTRAINT] I

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
SO3_OBJECT: Object used for the tire
Returns
I : 1 if the tire is on air, 0 if not, NIL otherwise

Definition at line 7492 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetBallAndSocketAngularVelocity()

int SO3PhysicsContraintSetBallAndSocketAngularVelocity ( mmachine  m)

SO3PhysicsContraintSetBallAndSocketAngularVelocity : Set a physic ball and socket contraint angular velocity The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
f: angular speed
Returns
I : 1 if success, NIL otherwise

Definition at line 5809 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetBallAndSocketControlled()

int SO3PhysicsContraintSetBallAndSocketControlled ( mmachine  m)

SO3PhysicsContraintSetBallAndSocketControlled : Set a physic ball and socket contraint controlled mode.

Prototype: fun [SO3_PHYSICCONTRAINT I] I

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
I: 1 to enable control 0 to disable
Returns
I : 1 if success, NIL otherwise

Definition at line 5766 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetBallAndSocketLimits()

int SO3PhysicsContraintSetBallAndSocketLimits ( mmachine  m)

SO3PhysicsContraintSetBallAndSocketLimits : Set a physic ball and socket contraint cone limits.

Prototype: fun [SO3_PHYSICCONTRAINT F F F] I

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
F: max cone (radian)
F: min twist (radian)
F: max twist (radian)
Returns
I : 1 if success, NIL otherwise

Definition at line 5714 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetBallAndSocketPitchAngle()

int SO3PhysicsContraintSetBallAndSocketPitchAngle ( mmachine  m)

SO3PhysicsContraintSetBallAndSocketPitchAngle : Set a physic ball and socket contraint Pitch angle The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
f: angle in radian
Returns
I : 1 if success, NIL otherwise

Definition at line 5895 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetBallAndSocketRollAngle()

int SO3PhysicsContraintSetBallAndSocketRollAngle ( mmachine  m)

SO3PhysicsContraintSetBallAndSocketRollAngle : Set a physic ball and socket contraint Roll angle The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
f: angle in radian
Returns
I : 1 if success, NIL otherwise

Definition at line 5938 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetBallAndSocketYawAngle()

int SO3PhysicsContraintSetBallAndSocketYawAngle ( mmachine  m)

SO3PhysicsContraintSetBallAndSocketYawAngle : Set a physic ball and socket contraint Yaw angle The contraint must be setted controlled enable using SO3PhysicsContraintSetBallAndSocketControlled.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Ball and socket contraint
f: angle in radian
Returns
I : 1 if success, NIL otherwise

Definition at line 5852 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetCollisionState()

int SO3PhysicsContraintSetCollisionState ( mmachine  m)

SO3PhysicsContraintSetCollisionState : Set a physic contraint collision state between the son and the parent body.

Prototype: fun [SO3_PHYSICCONTRAINT I] I

Parameters
SO3_PHYSICCONTRAINT: contraint
I: state 1 to enable
Returns
I : 1 if success, NIL otherwise

Definition at line 5468 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetHingeBrake()

int SO3PhysicsContraintSetHingeBrake ( mmachine  m)

SO3PhysicsContraintSetHingeBrake : Set a physic hinge contraint brake.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
F: Force value, 0 infinite force, -1 stop brake, > 0 force to brake
Returns
I : 1 if success, NIL otherwise

Definition at line 6554 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetHingeLimits()

int SO3PhysicsContraintSetHingeLimits ( mmachine  m)

SO3PhysicsContraintSetHingeLimits : Set a physic hinge contraint angle limits.

Prototype: fun [SO3_PHYSICCONTRAINT F F] I

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
F: min angle (radian)
F: max angle (radian)
Returns
I : 1 if success, NIL otherwise

Definition at line 6363 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetHingeMotorAngle()

int SO3PhysicsContraintSetHingeMotorAngle ( mmachine  m)

SO3PhysicsContraintSetHingeMotorAngle : Set a physic hinge contraint to an angle.

Prototype: fun [SO3_PHYSICCONTRAINT F F F] I

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
F: angle (radian)
F: minimum friction
F: maximum friction
Returns
I : 1 if success, NIL otherwise

Definition at line 6411 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetHingeMotorEnable()

int SO3PhysicsContraintSetHingeMotorEnable ( mmachine  m)

SO3PhysicsContraintSetHingeMotorEnable : set a physic hinge contraint motor state.

Prototype: fun [SO3_PHYSICCONTRAINT I] I

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
I: State 1 to enable 0 or nil to disable
Returns
I : 1 if success, NIL otherwise

Definition at line 6596 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetHingeMotorOmega()

int SO3PhysicsContraintSetHingeMotorOmega ( mmachine  m)

SO3PhysicsContraintSetHingeMotorOmega : Set a physic hinge contraint omega.

Prototype: fun [SO3_PHYSICCONTRAINT F F] I

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
F: omega (radian)
F: strength 0 to 1
Returns
I : 1 if success, NIL otherwise

Definition at line 6463 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetHingeTorque()

int SO3PhysicsContraintSetHingeTorque ( mmachine  m)

SO3PhysicsContraintSetHingeTorque : Set a physic hinge contraint torque.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Hinge contraint
F: Torque
Returns
I : 1 if success, NIL otherwise

Definition at line 6513 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetSliderFriction()

int SO3PhysicsContraintSetSliderFriction ( mmachine  m)

SO3PhysicsContraintSetSliderFriction : Set a physic slider contraint friction.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
F: Friction
Returns
I : 1 if success, NIL otherwise

Definition at line 6963 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetSliderLimits()

int SO3PhysicsContraintSetSliderLimits ( mmachine  m)

SO3PhysicsContraintSetSliderLimits : Set a physic slider contraint distance limits.

Prototype: fun [SO3_PHYSICCONTRAINT F F] I

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
F: min distance
F: max distance
Returns
I : 1 if success, NIL otherwise

Definition at line 6868 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetSliderMotorEnable()

int SO3PhysicsContraintSetSliderMotorEnable ( mmachine  m)

SO3PhysicsContraintSetSliderMotorEnable : set a physic slider contraint motor state.

Prototype: fun [SO3_PHYSICCONTRAINT I] I

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
I: State 1 to enable 0 or nil to disable
Returns
I : 1 if success, NIL otherwise

Definition at line 7004 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetSliderMotorVelocity()

int SO3PhysicsContraintSetSliderMotorVelocity ( mmachine  m)

SO3PhysicsContraintSetSliderMotorVelocity : Set a physic slider contraint velocity.

Prototype: fun [SO3_PHYSICCONTRAINT F F] I

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
F: velocity
F: strength 0 to 1
Returns
I : 1 if success, NIL otherwise

Definition at line 7046 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetSliderSpring()

int SO3PhysicsContraintSetSliderSpring ( mmachine  m)

SO3PhysicsContraintSetSliderSpring : Set a physic slider contraint spring setting.

Prototype: fun [SO3_PHYSICCONTRAINT F F] I

Parameters
SO3_PHYSICCONTRAINT: Slider contraint
F: Spring strength
F: Spring damping
Returns
I : 1 if success, NIL otherwise

Definition at line 6916 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetStiffness()

int SO3PhysicsContraintSetStiffness ( mmachine  m)

SO3PhysicsContraintSetStiffness : Set a physic contraint stiffness value.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: contraint
F: Stiffness value from 0 to 1
Returns
I : 1 if success, NIL otherwise

Definition at line 5545 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetVehicleBrake()

int SO3PhysicsContraintSetVehicleBrake ( mmachine  m)

SO3PhysicsContraintSetVehicleBrake : Set a physic vehicle contraint brake.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
F: brake torque (0.0 none)
Returns
I : 1 if success, NIL otherwise

Definition at line 7373 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetVehicleDrivingTorque()

int SO3PhysicsContraintSetVehicleDrivingTorque ( mmachine  m)

SO3PhysicsContraintSetVehicleDrivingTorque : Set a physic vehicle contraint driving torque.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
F: torque in radian
Returns
I : 1 if success, NIL otherwise

Definition at line 7331 of file SCOLPhysics.cpp.

◆ SO3PhysicsContraintSetVehicleSteerAngle()

int SO3PhysicsContraintSetVehicleSteerAngle ( mmachine  m)

SO3PhysicsContraintSetVehicleSteerAngle : Set a physic vehicle contraint steer angle.

Prototype: fun [SO3_PHYSICCONTRAINT F] I

Parameters
SO3_PHYSICCONTRAINT: Vehicle contraint
F: Angle in radian
Returns
I : 1 if success, NIL otherwise

Definition at line 7289 of file SCOLPhysics.cpp.

◆ SO3PhysicsGetMaterial()

int SO3PhysicsGetMaterial ( mmachine  m)

SO3PhysicsGetMaterial : return a material Physics by its name.

Prototype: fun [SO3_SCENE S] SO3_PHYSICMATERIAL

Parameters
SO3_SCENE: current scene
S: given name
Returns
SO3_PHYSICMATERIAL : The physic material ID if success, NIL otherwise

Definition at line 7765 of file SCOLPhysics.cpp.

◆ SO3PhysicsGetMaterialName()

int SO3PhysicsGetMaterialName ( mmachine  m)

SO3PhysicsGetMaterialName : return the name of a Physics material.

Prototype: fun [SO3_PHYSICMATERIAL] S

Parameters
SO3_PHYSICMATERIAL: the physic material
Returns
SO3_PHYSICMATERIAL : The physic material name if success, NIL otherwise

Definition at line 7833 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialCreate()

int SO3PhysicsMaterialCreate ( mmachine  m)

SO3PhysicsMaterialCreate : Create a new Physic Material ID.

Prototype: fun [SO3_SCENE S] SO3_PHYSICMATERIAL

Parameters
SO3_SCENE: current scene
S: given name
Returns
SO3_PHYSICMATERIAL : the material ID if success, NIL otherwise

Definition at line 7652 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialDestroy()

int SO3PhysicsMaterialDestroy ( mmachine  m)

SO3PhysicsMaterialDestroy : Destroy a Physic Material ID.

Prototype: fun [SO3_PHYSICMATERIAL] I

Parameters
SO3_PHYSICMATERIAL: current material Physic ID
Returns
I : 1 if success, NIL otherwise

Definition at line 7732 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialSetContiniousCollisionMode()

int SO3PhysicsMaterialSetContiniousCollisionMode ( mmachine  m)

SO3PhysicsMaterialSetContiniousCollisionMode : do nothing deprecated.

Prototype: fun [SO3_PHYSICMATERIAL SO3_PHYSICMATERIAL I] I

Parameters
SO3_PHYSICMATERIAL: given material ID1
SO3_PHYSICMATERIAL: given material ID2
I: Default continuous collision
Returns
I : 1 if success, NIL otherwise

Definition at line 8155 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialSetDefaultCollidable()

int SO3PhysicsMaterialSetDefaultCollidable ( mmachine  m)

SO3PhysicsMaterialSetDefaultCollidable : defines Default Collidable state between two physics material.

Prototype: fun [SO3_PHYSICMATERIAL SO3_PHYSICMATERIAL I] I

Parameters
SO3_PHYSICMATERIAL: given material ID1
SO3_PHYSICMATERIAL: given material ID2
I: Default Collidable
Returns
I : 1 if success, NIL otherwise

Definition at line 8095 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialSetDefaultElasticity()

int SO3PhysicsMaterialSetDefaultElasticity ( mmachine  m)

SO3PhysicsMaterialSetDefaultElasticity : defines Default elasticity between two physics material.

Prototype: fun [SO3_PHYSICMATERIAL SO3_PHYSICMATERIAL F] I

Parameters
SO3_PHYSICMATERIAL: given material ID1
SO3_PHYSICMATERIAL: given material ID2
F: Default elasticity coefficent
Returns
I : 1 if success, NIL otherwise

Definition at line 7925 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialSetDefaultFriction()

int SO3PhysicsMaterialSetDefaultFriction ( mmachine  m)

SO3PhysicsMaterialSetDefaultFriction : defines Default friction between two physics material.

Prototype: fun [SO3_PHYSICMATERIAL SO3_PHYSICMATERIAL F F] I

Parameters
SO3_PHYSICMATERIAL: given material ID1
SO3_PHYSICMATERIAL: given material ID2
F: friction coefficent
F: kinetic coefficent
Returns
I : 1 if success, NIL otherwise

Definition at line 7987 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialSetDefaultSoftness()

int SO3PhysicsMaterialSetDefaultSoftness ( mmachine  m)

SO3PhysicsMaterialSetDefaultSoftness : defines Default softness between two physics material.

Prototype: fun [SO3_PHYSICMATERIAL SO3_PHYSICMATERIAL F] I

Parameters
SO3_PHYSICMATERIAL: given material ID1
SO3_PHYSICMATERIAL: given material ID2
F: Default softness coefficent
Returns
I : 1 if success, NIL otherwise

Definition at line 8041 of file SCOLPhysics.cpp.

◆ SO3PhysicsMaterialSetSurfaceThickness()

int SO3PhysicsMaterialSetSurfaceThickness ( mmachine  m)

SO3PhysicsMaterialSetSurfaceThickness : defines Surface thickness between two physics material.

Prototype: fun [SO3_PHYSICMATERIAL SO3_PHYSICMATERIAL F] I

Parameters
SO3_PHYSICMATERIAL: given material ID1
SO3_PHYSICMATERIAL: given material ID2
F: Surface thickness coefficent
Returns
I : 1 if success, NIL otherwise

Definition at line 7869 of file SCOLPhysics.cpp.

◆ SO3PhysicsRayCast()

int SO3PhysicsRayCast ( mmachine  m)

SO3PhysicsRayCast : send a raycast and return the distance.

Prototype: fun [SO3_SCENE [F F F] [F F F] F] [SO3_PHYSICBODY F [F F F]]

Parameters
SO3_SCENE: current scene
[FF F] : source position in global space
[FF F] : directional vector
F: maximum distance of ray
Returns
[SO3_PHYSICBODY F [F F F]] : hit body, distance and normal vector if success, NIL otherwise

Definition at line 5198 of file SCOLPhysics.cpp.

◆ SO3PhysicsRayCastExt()

int SO3PhysicsRayCastExt ( mmachine  m)

SO3PhysicsRayCastExt : send a raycast all the hit bodies.

Prototype: fun [SO3_SCENE [F F F] [F F F] F] [[SO3_PHYSICBODY F [F F F]] r1]

Parameters
SO3_SCENE: current scene
[FF F] : source position in global space
[FF F] : directional vector
F: maximum distance of ray
Returns
[[SO3_PHYSICBODY F [F F F]] r1] : list of hit bodies, distance and normal vector if success, NIL otherwise

Definition at line 5317 of file SCOLPhysics.cpp.

◆ SO3SceneNodeGetBody()

int SO3SceneNodeGetBody ( mmachine  m)

SO3SceneNodeGetBody : Get the body attached to a node.

Prototype: fun [SO3_OBJECT] SO3_PHYSICBODY

Parameters
SO3_OBJECT: current node
Returns
SO3_PHYSICBODY : the body if success, NIL otherwise

Definition at line 5146 of file SCOLPhysics.cpp.

◆ SO3WorldApplyImpulsePoint()

int SO3WorldApplyImpulsePoint ( mmachine  m)

SO3WorldApplyImpulsePoint : Apply an impulsion on bodies in the point area.

! Prototype : < / b> fun[SO3_SCENE [F F F] F F] I

Parameters
SO3_SCENE: current scene

Definition at line 8179 of file SCOLPhysics.cpp.

◆ SO3WorldGetEnabled()

int SO3WorldGetEnabled ( mmachine  m)

SO3WorldGetEnabled : Return the enable state of the physic world.

Prototype: fun [SO3_SCENE] I

Parameters
SO3_SCENE: current scene
Returns
I : 1 Enable, 0 disable if success, NIL otherwise

Definition at line 802 of file SCOLPhysics.cpp.

◆ SO3WorldGetFPS()

int SO3WorldGetFPS ( mmachine  m)

SO3WorldGetFPS : retrieve the FPS for physic world.

Prototype: fun [SO3_SCENE] I

Parameters
SO3_SCENE: current scene
Returns
I : the physic world FPS if success, NIL otherwise

Definition at line 376 of file SCOLPhysics.cpp.

◆ SO3WorldGetFrictionModel()

int SO3WorldGetFrictionModel ( mmachine  m)

SO3WorldGetFrictionModel : This function gets the friction model for the world ! Deprecated !

Prototype: fun [SO3_SCENE] I

Parameters
SO3_SCENE: current scene
Returns
I : The friction model if success, NIL otherwise
  • For friction model, values are :
  • SO3_FM_EXACT
  • SO3_FM_ADAPTATIVE

Definition at line 506 of file SCOLPhysics.cpp.

◆ SO3WorldGetGravity()

int SO3WorldGetGravity ( mmachine  m)

SO3WorldGetGravity : get the gravity of the scene.

Prototype: fun [SO3_SCENE] [F F F]

Parameters
SO3_SCENE: current scene
Returns
[F F F] : gravity vector, NIL otherwise

Definition at line 1057 of file SCOLPhysics.cpp.

◆ SO3WorldGetPlateformArchitecture()

int SO3WorldGetPlateformArchitecture ( mmachine  m)

SO3WorldGetPlateformArchitecture : This function gets the platform architecture for the world ! Deprecated !

Prototype: fun [SO3_SCENE] I

Parameters
SO3_SCENE: current scene
Returns
I : Platform architecture mode if success, NIL otherwise

For Platform architecture, values are :

  • SO3_PA_DEFAULT
  • SO3_PA_MEDIUM
  • SO3_PA_BEST

Definition at line 596 of file SCOLPhysics.cpp.

◆ SO3WorldGetSolverModel()

int SO3WorldGetSolverModel ( mmachine  m)

SO3WorldGetSolverModel : This function gets the solver model of the world.

Prototype: fun [SO3_SCENE I] I

Parameters
SO3_SCENE: current scene
Returns
I : Solver model if success, NIL otherwise

For Solver model, values are :

  • SO3_SM_EXACT
  • Iterative value

Definition at line 709 of file SCOLPhysics.cpp.

◆ SO3WorldReset()

int SO3WorldReset ( mmachine  m)

SO3WorldReset : Reset the physic world and all bodies states.

Prototype: fun [SO3_SCENE] I

Parameters
SO3_SCENE: current scene
Returns
I : 1 if success, NIL otherwise

Definition at line 844 of file SCOLPhysics.cpp.

◆ SO3WorldSetBodiesInitialState()

int SO3WorldSetBodiesInitialState ( mmachine  m)

SO3WorldSetBodiesInitialState : Set the current PRS as initial PRS to all bodies.

Prototype: fun [SO3_SCENE] I

Parameters
SO3_SCENE: current scene
Returns
I : 1 if success, NIL otherwise

Definition at line 884 of file SCOLPhysics.cpp.

◆ SO3WorldSetEnabled()

int SO3WorldSetEnabled ( mmachine  m)

SO3WorldSetEnabled : Activate or Deactivate the physic world.

Prototype: fun [SO3_SCENE I] I

Parameters
SO3_SCENE: current scene
I: boolean (1 true, 0 false)
Returns
I : 1 if success, NIL otherwise

Definition at line 748 of file SCOLPhysics.cpp.

◆ SO3WorldSetFPS()

int SO3WorldSetFPS ( mmachine  m)

SO3WorldSetFPS : defines FPS for physic world.

Prototype: fun [SO3_SCENE I] I

Parameters
SO3_SCENE: current scene
I: FPS
Returns
I : 1 if success, NIL otherwise

Definition at line 324 of file SCOLPhysics.cpp.

◆ SO3WorldSetFrictionModel()

int SO3WorldSetFrictionModel ( mmachine  m)

SO3WorldSetFrictionModel : This function sets the friction model for the world ! Deprecated !

Prototype: fun [SO3_SCENE I] I

Parameters
SO3_SCENE: current scene
I: flag for the friction model

For friction model, values are :

  • SO3_FM_EXACT
  • SO3_FM_ADAPTATIVE
Returns
I : 1 if success, NIL otherwise

Definition at line 481 of file SCOLPhysics.cpp.

◆ SO3WorldSetGravity()

int SO3WorldSetGravity ( mmachine  m)

SO3WorldSetGravity : defines gravity for the scene.

Prototype: fun [SO3_SCENE [F F F]] I

Parameters
SO3_SCENE: current scene
[FF F] : Gravity vector
Returns
I : 1 if success, NIL otherwise

Definition at line 1005 of file SCOLPhysics.cpp.

◆ SO3WorldSetPlateformArchitecture()

int SO3WorldSetPlateformArchitecture ( mmachine  m)

SO3WorldSetPlateformArchitecture : This function sets the platform architecture for the world ! Deprecated !

Prototype: fun [SO3_SCENE I] I

Parameters
SO3_SCENE: current scene
I: Platform architecture flag

For Platform architecture, values are :

  • SO3_PA_DEFAULT
  • SO3_PA_MEDIUM
  • SO3_PA_BEST
Returns
I : 1 if success, NIL otherwise

Definition at line 532 of file SCOLPhysics.cpp.

◆ SO3WorldSetSize()

int SO3WorldSetSize ( mmachine  m)

SO3WorldSetSize : function to defines world size.

Prototype: fun [SO3_SCENE] I

Parameters
SO3_SCENE: current scene
Returns
I : 1 if success, NIL otherwise

Definition at line 415 of file SCOLPhysics.cpp.

◆ SO3WorldSetSolverModel()

int SO3WorldSetSolverModel ( mmachine  m)

SO3WorldSetSolverModel : This function sets thesolver model for the world.

Prototype: fun [SO3_SCENE I] I

Parameters
SO3_SCENE: current scene
I: Solver model flag

For Solver model, values are :

  • SO3_SM_EXACT
  • Iterative value
Returns
I : 1 if success, NIL otherwise

Definition at line 649 of file SCOLPhysics.cpp.

◆ SO3WorldShowLines()

int SO3WorldShowLines ( mmachine  m)

SO3WorldShowLines : Return true if world shows its debug calculation lines.

Prototype: fun [SO3_SCENE I] I

Parameters
SO3_SCENE: current scene
I: boolean for show lines (1 enable, 0 disable)
Returns
I : 1 if success, NIL otherwise

Definition at line 959 of file SCOLPhysics.cpp.