Project

General

Profile

SO3Engine
Newton Physics

Functions

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

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 3088 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 3227 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 2948 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 3319 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 3608 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 3367 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 3415 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 4436 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 2823 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 1123 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 1631 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 1276 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 1854 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 1351 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 1959 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 2383 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 2534 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 1419 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 2064 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 1487 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 2170 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 1199 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 1742 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 1553 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 2274 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 2450 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 5257 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 2863 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 3980 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 4638 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 4776 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 3135 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 3274 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 4742 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 4332 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 4404 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 2995 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 5022 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 5183 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 4219 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 4514 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 4480 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 4577 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 7784 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 4024 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 4910 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 5220 of file SCOLPhysics.cpp.

◆ SO3BodyGetShapeDefinition()

int SO3BodyGetShapeDefinition ( mmachine  m)

SO3BodyGetShapeDefinition : Get a body shape definition.

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

Parameters
SO3_OBJECT: current node associated with a mesh
F: float tolerance 0 for best quality
Returns
[I F [F F] [F F F] [F F F] [F F F F]] : The body shape definition if success, NIL otherwise type, tolerance, radius height, size vector, position offset, orientation offset

Definition at line 2618 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 5103 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 4673 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 4864 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 4708 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 4820 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 3670 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 3730 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 3835 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 4105 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 3883 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 3040 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 3179 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 4254 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 4294 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 4368 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 2899 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 4980 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 5141 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 4180 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 937 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 4069 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 2785 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 3932 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 7738 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 3511 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 3789 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 5060 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 3463 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 4145 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 3559 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 5286 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 7342 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 5804 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 6301 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 6822 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 7275 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 5618 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 6158 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 6250 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 6204 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 5687 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 6399 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 6471 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 6435 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 6963 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 7009 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 6927 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 5764 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 7593 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 7431 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 7628 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 7671 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 5988 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 5945 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 5893 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 6074 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 6117 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 6031 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 5647 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 6733 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 6542 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 6590 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 6775 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 6642 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 6692 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 7142 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 7047 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 7183 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 7225 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 7095 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 5724 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 7552 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 7510 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 7468 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 7944 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 8012 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 7831 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 7911 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 8334 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 8274 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 8104 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 8166 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 8220 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 8048 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 5377 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 5496 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 5325 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
[FF F] : world position
F: radius
F: strength
Returns
I : 1 if success, NIL otherwise

Definition at line 8358 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 815 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 389 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 519 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 1070 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 609 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 722 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 857 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 897 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 761 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 337 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 494 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 1018 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 545 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 428 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 662 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 972 of file SCOLPhysics.cpp.