OsGetPhysicsEngineName
From OpenSimulator
(Difference between revisions)
(Created) |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
− | |threat_level= | + | |threat_level=ignored |
+ | |permissions=true | ||
+ | |delay=0 | ||
|function_syntax=string osGetPhysicsEngineName() | |function_syntax=string osGetPhysicsEngineName() | ||
|ossl_example=<source lang = "lsl"> | |ossl_example=<source lang = "lsl"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
default | default | ||
{ | { | ||
Line 32: | Line 17: | ||
} | } | ||
</source> | </source> | ||
− | |description=This function returns a string containing the name of the | + | |description=This function returns a string containing the name and version number of the physics engine. |
− | | | + | |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". | ||
}} | }} | ||
− | |||
− | |||
− | |||
− |
Revision as of 15:08, 20 February 2019
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) | |
default { state_entry() // display @ start { llSay(0, "Touch me to get the physics engine name using osGetPhysicsEngineName"); } touch_end(integer num) // Tell toucher our version { llInstantMessage(llDetectedKey(0), "Physics engine type: "+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". |