Newton Physics

Functions

int SO3WorldSetFrictionModel (mmachine m)
 SO3WorldSetFrictionModel : This function sets the friction model for the world.
int SO3WorldGetFrictionModel (mmachine m)
 SO3WorldGetFrictionModel : This function gets the friction model for the world.
int SO3WorldSetPlateformArchitecture (mmachine m)
 SO3WorldSetPlateformArchitecture : This function sets the platform architecture for the world.
int SO3WorldGetPlateformArchitecture (mmachine m)
 SO3WorldGetPlateformArchitecture : This function gets the platform architecture for the world.
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 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 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 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 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 SO3BodySetContiniousCollisionMode (mmachine m)
 SO3BodySetContiniousCollisionMode : defines continuous collision mode 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 SO3BodyGetSceneNode (mmachine m)
 SO3BodyGetSceneNode : Get the scene Node asssociated to a body.
int SO3BodyDestroy (mmachine m)
 SO3BodyDestroy : Destroy a body.
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 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 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 : defines Default continuous collision state between two physics material.

Detailed Description

Scol functions definition


Function Documentation

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
[F F F] : Force
Returns:
I : 1 if success, NIL otherwise

Definition at line 1824 of file SCOLPhysics.cpp.

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
[F F F] : Force
Returns:
I : 1 if success, NIL otherwise

Definition at line 1963 of file SCOLPhysics.cpp.

int SO3BodyAddForce ( mmachine  m  ) 

SO3BodyAddForce : Add a force to a body.

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

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

Definition at line 1684 of file SCOLPhysics.cpp.

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
[F F F] : Force
Returns:
I : 1 if success, NIL otherwise

Definition at line 2055 of file SCOLPhysics.cpp.

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
[F F F] : delta
[F F F] : source position
Returns:
I : 1 if success, NIL otherwise

Definition at line 2344 of file SCOLPhysics.cpp.

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
[F F F] : Force
Returns:
I : 1 if success, NIL otherwise

Definition at line 2103 of file SCOLPhysics.cpp.

int SO3BodyAddTorque ( mmachine  m  ) 

SO3BodyAddTorque : Add torque vector to a body.

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

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

Definition at line 2151 of file SCOLPhysics.cpp.

int SO3BodyCreateBasicJointUpVector ( mmachine  m  ) 

SO3BodyCreateBasicJointUpVector : Create an up joint vector.

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

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

Definition at line 1560 of file SCOLPhysics.cpp.

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
[F F F] : Box dimensions
Returns:
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 927 of file SCOLPhysics.cpp.

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 1072 of file SCOLPhysics.cpp.

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 1135 of file SCOLPhysics.cpp.

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 1398 of file SCOLPhysics.cpp.

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 1199 of file SCOLPhysics.cpp.

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 1263 of file SCOLPhysics.cpp.

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
[F F F] : Ellispoid dimensions
Returns:
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 999 of file SCOLPhysics.cpp.

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
[F F F] : Pyramid Dimensions
Returns:
SO3_PHYSICBODY : The created body if success, NIL otherwise

Definition at line 1325 of file SCOLPhysics.cpp.

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 1455 of file SCOLPhysics.cpp.

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 3449 of file SCOLPhysics.cpp.

int SO3BodyDestroyBasicJointUpVector ( mmachine  m  ) 

SO3BodyDestroyBasicJointUpVector : Destroying an up joint vector.

Prototype: fun [SO3_PHYSICBODY] I

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

Definition at line 1600 of file SCOLPhysics.cpp.

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 2598 of file SCOLPhysics.cpp.

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 2991 of file SCOLPhysics.cpp.

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 3129 of file SCOLPhysics.cpp.

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 1871 of file SCOLPhysics.cpp.

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 2010 of file SCOLPhysics.cpp.

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 3095 of file SCOLPhysics.cpp.

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 1731 of file SCOLPhysics.cpp.

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 3375 of file SCOLPhysics.cpp.

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 2873 of file SCOLPhysics.cpp.

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 2839 of file SCOLPhysics.cpp.

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 2933 of file SCOLPhysics.cpp.

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 3724 of file SCOLPhysics.cpp.

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 2642 of file SCOLPhysics.cpp.

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 3263 of file SCOLPhysics.cpp.

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 3412 of file SCOLPhysics.cpp.

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 3026 of file SCOLPhysics.cpp.

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 3217 of file SCOLPhysics.cpp.

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 3061 of file SCOLPhysics.cpp.

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 3173 of file SCOLPhysics.cpp.

int SO3BodySetAngularDamping ( mmachine  m  ) 

SO3BodySetAngularDamping : defines angular Damping of a body.

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

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

Definition at line 2453 of file SCOLPhysics.cpp.

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 2723 of file SCOLPhysics.cpp.

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
[F F F] : Center of Mass (vector)
Returns:
I : 1 if success, NIL otherwise

Definition at line 2501 of file SCOLPhysics.cpp.

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
[F F F] : Force
Returns:
I : 1 if success, NIL otherwise

Definition at line 1776 of file SCOLPhysics.cpp.

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
[F F F] : Force
Returns:
I : 1 if success, NIL otherwise

Definition at line 1915 of file SCOLPhysics.cpp.

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 2800 of file SCOLPhysics.cpp.

int SO3BodySetForce ( mmachine  m  ) 

SO3BodySetForce : Set a force to a body.

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

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

Definition at line 1636 of file SCOLPhysics.cpp.

int SO3BodySetFreeze ( mmachine  m  ) 

SO3BodySetFreeze : 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 3333 of file SCOLPhysics.cpp.

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 2687 of file SCOLPhysics.cpp.

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 1522 of file SCOLPhysics.cpp.

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
[F F F] : Center of Mass (vector)
Returns:
I : 1 if success, NIL otherwise

Definition at line 2550 of file SCOLPhysics.cpp.

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 3678 of file SCOLPhysics.cpp.

int SO3BodySetOmega ( mmachine  m  ) 

SO3BodySetOmega : Set an omega to a body.

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

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

Definition at line 2247 of file SCOLPhysics.cpp.

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
[F F F] : Position (vector)
[F F F F] : orientation (quaternion)
Returns:
I : 1 if success, NIL otherwise

Definition at line 2407 of file SCOLPhysics.cpp.

int SO3BodySetTorque ( mmachine  m  ) 

SO3BodySetTorque : Set a torque to a body.

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

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

Definition at line 2199 of file SCOLPhysics.cpp.

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 2763 of file SCOLPhysics.cpp.

int SO3BodySetVelocity ( mmachine  m  ) 

SO3BodySetVelocity : Set a velocity to a body.

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

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

Definition at line 2295 of file SCOLPhysics.cpp.

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 3891 of file SCOLPhysics.cpp.

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 3784 of file SCOLPhysics.cpp.

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 3858 of file SCOLPhysics.cpp.

int SO3PhysicsMaterialSetContiniousCollisionMode ( mmachine  m  ) 

SO3PhysicsMaterialSetContiniousCollisionMode : defines Default continuous collision 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 continuous collision
Returns:
I : 1 if success, NIL otherwise

Definition at line 4240 of file SCOLPhysics.cpp.

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 4181 of file SCOLPhysics.cpp.

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 4011 of file SCOLPhysics.cpp.

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 4073 of file SCOLPhysics.cpp.

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 4127 of file SCOLPhysics.cpp.

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 3955 of file SCOLPhysics.cpp.

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
[F F F] : source position in global space
[F F 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 3523 of file SCOLPhysics.cpp.

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 3477 of file SCOLPhysics.cpp.

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 680 of file SCOLPhysics.cpp.

int SO3WorldGetFrictionModel ( mmachine  m  ) 

SO3WorldGetFrictionModel : This function gets the friction model for the world.

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 393 of file SCOLPhysics.cpp.

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 880 of file SCOLPhysics.cpp.

int SO3WorldGetPlateformArchitecture ( mmachine  m  ) 

SO3WorldGetPlateformArchitecture : This function gets the platform architecture for the world.

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 488 of file SCOLPhysics.cpp.

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
  • SO3_SM_ADAPTATIVE

Definition at line 581 of file SCOLPhysics.cpp.

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 716 of file SCOLPhysics.cpp.

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 750 of file SCOLPhysics.cpp.

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 622 of file SCOLPhysics.cpp.

int SO3WorldSetFrictionModel ( mmachine  m  ) 

SO3WorldSetFrictionModel : This function sets the friction model for the world.

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 346 of file SCOLPhysics.cpp.

int SO3WorldSetGravity ( mmachine  m  ) 

SO3WorldSetGravity : defines gravity for the scene.

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

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

Definition at line 825 of file SCOLPhysics.cpp.

int SO3WorldSetPlateformArchitecture ( mmachine  m  ) 

SO3WorldSetPlateformArchitecture : This function sets the platform architecture for the world.

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 440 of file SCOLPhysics.cpp.

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
  • SO3_SM_ADAPTATIVE
Returns:
I : 1 if success, NIL otherwise

Definition at line 534 of file SCOLPhysics.cpp.

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 785 of file SCOLPhysics.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Oct 31 14:42:34 2011 for SO3Engine by  doxygen 1.6.3