![]() |
Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
| b3d_physicsDebug (strSession, state) | |
| Show / Hide the debug physics lines. More... | |
| b3d_physicsEnable (strSession, state) | |
| Enable / Disable the physics world. More... | |
| b3d_physicsGetArchi (strSession) | |
| Get the platform architecture. More... | |
| b3d_physicsGetFps (strSession) | |
| Get the fps model. More... | |
| b3d_physicsGetFriction (strSession) | |
| Get the friction model. More... | |
| b3d_physicsGetGravity (strSession) | |
| Get the world gravity. More... | |
| b3d_physicsGetSize (strSession) | |
| Get the world size. More... | |
| b3d_physicsGetSolver (strSession) | |
| Get the solver model. More... | |
| b3d_physicsInitBodies (strSession) | |
| Set the current PRS as initial PRS to all bodies. More... | |
| b3d_physicsIsDebug (strSession, state) | |
| Return if the debug physics lines is shown / hidden. More... | |
| b3d_physicsIsEnabled (strSession) | |
| Return if the physics world is enabled / disabled. More... | |
| b3d_physicsReset (strSession) | |
| Reset the physics world and all bodies states. More... | |
| b3d_physicsSetArchi (strSession, mode) | |
| Set the platform architecture. More... | |
| b3d_physicsSetDefault (strSession) | |
| Set the physics with the default values. More... | |
| b3d_physicsSetFps (strSession, value) | |
| Set the fps model. More... | |
| b3d_physicsSetFriction (strSession, mode) | |
| Set the friction model. More... | |
| b3d_physicsSetGravity (strSession, vector) | |
| Set the world gravity. More... | |
| b3d_physicsSetGravityEarth (strSession) | |
| Set the world gravity as on Earth (x = 0, y = 9.81, z = 0). More... | |
| b3d_physicsSetSize (strSession, vector) | |
| Set the world size. More... | |
| b3d_physicsSetSolver (strSession, mode) | |
| Set the solver model. More... | |
| b3d_physicsSetArchi | ( | strSession | , |
| mode | |||
| ) |
Set the platform architecture.
Prototype : fun [LIB3D_Session I] I
| LIB3D_Session | : a session object |
| I | : the chosen mode :
|
| b3d_physicsGetArchi | ( | strSession | ) |
Get the platform architecture.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsSetSolver | ( | strSession | , |
| mode | |||
| ) |
Set the solver model.
Prototype : fun [LIB3D_Session I] I
| LIB3D_Session | : a session object |
| I | : the chosen mode :
|
| b3d_physicsGetSolver | ( | strSession | ) |
Get the solver model.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsSetFriction | ( | strSession | , |
| mode | |||
| ) |
Set the friction model.
Prototype : fun [LIB3D_Session I] I
| LIB3D_Session | : a session object |
| I | : the chosen mode :
|
| b3d_physicsGetFriction | ( | strSession | ) |
Get the friction model.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsSetSize | ( | strSession | , |
| vector | |||
| ) |
Set the world size.
Prototype : fun [LIB3D_Session [F F F]] I
| LIB3D_Session | : a session object |
| [F | F F] : the 3d three compnents (x, y, z) If a component is nil, its value will be 1000 (default value) |
| b3d_physicsGetSize | ( | strSession | ) |
Get the world size.
Prototype : fun [LIB3D_Session] [F F F]
| LIB3D_Session | : a session object |
| b3d_physicsSetFps | ( | strSession | , |
| value | |||
| ) |
Set the fps model.
Prototype : fun [LIB3D_Session I] I
| LIB3D_Session | : a session object |
| I | : the fps (60 by default, if this value is nil) |
| b3d_physicsGetFps | ( | strSession | ) |
Get the fps model.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsSetGravity | ( | strSession | , |
| vector | |||
| ) |
Set the world gravity.
Prototype : fun [LIB3D_Session [F F F]] I
| LIB3D_Session | : a session object |
| [F | F F] : the graivity in the three directions (x, y, z) If a component is nil, its value will be 0 (default value) |
| b3d_physicsSetGravityEarth | ( | strSession | ) |
Set the world gravity as on Earth (x = 0, y = 9.81, z = 0).
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsGetGravity | ( | strSession | ) |
Get the world gravity.
Prototype : fun [LIB3D_Session] [F F F]
| LIB3D_Session | : a session object |
| b3d_physicsSetDefault | ( | strSession | ) |
Set the physics with the default values.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsEnable | ( | strSession | , |
| state | |||
| ) |
Enable / Disable the physics world.
Prototype : fun [LIB3D_Session I] I
| LIB3D_Session | : a session object |
| I | : 1 to enable, 0 to disable |
| b3d_physicsIsEnabled | ( | strSession | ) |
Return if the physics world is enabled / disabled.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsReset | ( | strSession | ) |
Reset the physics world and all bodies states.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsInitBodies | ( | strSession | ) |
Set the current PRS as initial PRS to all bodies.
Prototype : fun [LIB3D_Session] I
| LIB3D_Session | : a session object |
| b3d_physicsDebug | ( | strSession | , |
| state | |||
| ) |
Show / Hide the debug physics lines.
Prototype : fun [LIB3D_Session I] I
| LIB3D_Session | : a session object |
| I | : 1 to show, 0 to hide |
| b3d_physicsIsDebug | ( | strSession | , |
| state | |||
| ) |
Return if the debug physics lines is shown / hidden.
Prototype : fun [LIB3D_Session I] I
| LIB3D_Session | : a session object |
| I | : 1 to show, 0 to hide |
1.8.9.1