OsGetPhysicsEngineName
From OpenSimulator
(Difference between revisions)
m (Updated threat level, permissions, and delay information) |
(Replace script) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|delay=0 | |delay=0 | ||
|function_syntax=string osGetPhysicsEngineName() | |function_syntax=string osGetPhysicsEngineName() | ||
+ | |description=This function returns a string containing the name and version number of the physics engine. | ||
|ossl_example=<source lang = "lsl"> | |ossl_example=<source lang = "lsl"> | ||
− | |||
− | |||
// | // | ||
− | // Script | + | // osGetPhysicsEngineName Script Example |
− | // | + | // Author: djphil |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
// | // | ||
+ | |||
default | default | ||
{ | { | ||
− | state_entry() | + | state_entry() |
{ | { | ||
− | llSay( | + | llSay(PUBLIC_CHANNEL, "Touch to see osGetPhysicsEngineName usage."); |
} | } | ||
− | + | ||
+ | touch_start(integer number) | ||
{ | { | ||
− | + | llSay(PUBLIC_CHANNEL, "The physics engine name is " + osGetPhysicsEngineName()); | |
} | } | ||
} | } | ||
</source> | </source> | ||
− | | | + | |additional_info=This function was added in 0.9.0.1 |
− | + | The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX") and the version number. Like "OpenDynamicsEngine 1.0", "BulletSim 1.0", or "ubODE 1.0". | |
}} | }} | ||
− | |||
− | |||
− | |||
− |
Latest revision as of 08:10, 30 December 2020
string osGetPhysicsEngineName()
| |
This function returns a string containing the name and version number of the physics engine. | |
Threat Level | This function does not do a threat level check |
Permissions | Use of this function is always allowed by default |
Extra Delay | 0 seconds |
Example(s) | |
// // osGetPhysicsEngineName Script Example // Author: djphil // default { state_entry() { llSay(PUBLIC_CHANNEL, "Touch to see osGetPhysicsEngineName usage."); } touch_start(integer number) { llSay(PUBLIC_CHANNEL, "The physics engine name is " + osGetPhysicsEngineName()); } } | |
Notes | |
This function was added in 0.9.0.1
The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX") and the version number. Like "OpenDynamicsEngine 1.0", "BulletSim 1.0", or "ubODE 1.0". |