OsGetPhysicsEngineName

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Updated threat level, permissions, and delay information)
m (Added note stating which version of OpenSim introduced this function)
Line 35: Line 35:
 
</source>
 
</source>
 
|description=This function returns a string containing the name and version number of the physics engine.
 
|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-post-fixes
}}
+
 
Notes:
+
 
This function does perform a threat level check. This allows vehicle scripts to always check this and not worry about exceptions.
 
This function does perform a threat level check. This allows vehicle scripts to always check this and not worry about exceptions.
  
 
The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX") and the version number. It is usually "OpenDynamicsEngine 1.0", "BulletSim 1.0", or "ubODE 1.0".
 
The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX") and the version number. It is usually "OpenDynamicsEngine 1.0", "BulletSim 1.0", or "ubODE 1.0".
 +
}}

Revision as of 10:49, 15 October 2018

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)
// ----------------------------------------------------------------
// Example / Sample Script to show function use.
//
// Script Title:    osGetPhysicsEngineName.lsl
// Script Author:   
// Threat Level:    High
// Script Source:   http://opensimulator.org/wiki/OsGetPhysicsEngineName
//
// Notes: See Script Source reference for more detailed information
// This sample is full opensource and available to use as you see fit and desire.
// Threat Levels only apply to OSSL & AA Functions
// See http://opensimulator.org/wiki/Threat_level
// ================================================================
// Inworld Script Line:    string osGetPhysicsEngineName();
//
// Example of osGetPhysicsEngineName()
//
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-post-fixes

This function does perform a threat level check. This allows vehicle scripts to always check this and not worry about exceptions.

The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX") and the version number. It is usually "OpenDynamicsEngine 1.0", "BulletSim 1.0", or "ubODE 1.0".


Personal tools
General
About This Wiki