http://opensimulator.org/index.php?title=OsGetPhysicsEngineType&feed=atom&action=historyOsGetPhysicsEngineType - Revision history2024-03-28T21:28:03ZRevision history for this page on the wikiMediaWiki 1.19.9http://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=50475&oldid=prevDjphil: Replace script2020-12-30T16:13:43Z<p>Replace script</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:13, 30 December 2020</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|delay=0</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|delay=0</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">|description=This function returns a string containing the name of the Physics Engine.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">// ----------------------------------------------------------------</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">// Example / Sample Script to show function use.</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>// Script <del class="diffchange diffchange-inline">Title:    osGetPhysicsEngineType.lsl</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>// <ins class="diffchange diffchange-inline">osGetPhysicsEngineType </ins>Script <ins class="diffchange diffchange-inline">Example</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>// <del class="diffchange diffchange-inline">Script </del>Author: <del class="diffchange diffchange-inline">  </del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>// Author: <ins class="diffchange diffchange-inline">djphil</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// Threat Level:    High</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// Script Source:  http://opensimulator.org/wiki/OsGetPhysicsEngineType</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">//</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// Notes: See Script Source reference for more detailed information</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// This sample is full opensource and available to use as you see fit and desire.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// Threat Levels only apply to OSSL & AA Functions</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// See http://opensimulator.org/wiki/Threat_level</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// ================================================================</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// Inworld Script Line:    string osGetPhysicsEngineType();</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">//</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">// Example of osGetPhysicsEngineType()</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"> </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>default</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>default</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>     state_entry() <del class="diffchange diffchange-inline">// display @ start</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>     state_entry()</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         llSay(<del class="diffchange diffchange-inline">0</del>, "Touch <del class="diffchange diffchange-inline">me </del>to <del class="diffchange diffchange-inline">get the physics engine type using </del>osGetPhysicsEngineType");</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         llSay(<ins class="diffchange diffchange-inline">PUBLIC_CHANNEL</ins>, "Touch to <ins class="diffchange diffchange-inline">see </ins>osGetPhysicsEngineType <ins class="diffchange diffchange-inline">usage.</ins>");</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>     <del class="diffchange diffchange-inline">touch_end</del>(integer <del class="diffchange diffchange-inline">num</del>) <del class="diffchange diffchange-inline">// Tell toucher our version</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>     <ins class="diffchange diffchange-inline">touch_start</ins>(integer <ins class="diffchange diffchange-inline">number</ins>)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         <del class="diffchange diffchange-inline">llInstantMessage</del>(<del class="diffchange diffchange-inline">llDetectedKey</del>(<del class="diffchange diffchange-inline">0</del>), "<del class="diffchange diffchange-inline">Physics engine type: </del>"<del class="diffchange diffchange-inline">+osGetPhysicsEngineType(</del>));</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         <ins class="diffchange diffchange-inline">string physics_engine_type = osGetPhysicsEngineType</ins>(<ins class="diffchange diffchange-inline">);</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        if </ins>(<ins class="diffchange diffchange-inline">physics_engine_type == "ubODE"</ins>)</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        {</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">            llSay(PUBLIC_CHANNEL</ins>, <ins class="diffchange diffchange-inline">physics_engine_type + </ins>" <ins class="diffchange diffchange-inline">is detected ...</ins>")<ins class="diffchange diffchange-inline">;</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        }</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        else</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        {</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">            llSay(PUBLIC_CHANNEL, physics_engine_type + " is not detected ..."</ins>);</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">        }</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">|description=This function returns a string containing the name of the Physics Engine.</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">|</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|additional_info=This function was added in 0.7.6-post-fixes</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|additional_info=This function was added in 0.7.6-post-fixes</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>This function does not throw an exception if the threat level is not high enough. If 'os' functions are enabled this function will return an empty string if the threat level is not met. This allows vehicle scripts to always check this and not worry about exceptions.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>This function does not throw an exception if the threat level is not high enough.<ins class="diffchange diffchange-inline"><br></ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>If 'os' functions are enabled this function will return an empty string if the threat level is not met.<ins class="diffchange diffchange-inline"><br></ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX"). It is usually either "OpenDynamicsEngine" <del class="diffchange diffchange-inline">or </del>"BulletSim".</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>This allows vehicle scripts to always check this and not worry about exceptions.<ins class="diffchange diffchange-inline"><br></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX").<ins class="diffchange diffchange-inline"><br></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>It is usually either "OpenDynamicsEngine"<ins class="diffchange diffchange-inline">, </ins>"BulletSim<ins class="diffchange diffchange-inline">" or "ubODE</ins>".</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
</table>Djphilhttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=46698&oldid=prevKcozens: Added note stating which version of OpenSim introduced this function2018-10-15T16:56:02Z<p>Added note stating which version of OpenSim introduced this function</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 16:56, 15 October 2018</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|description=This function returns a string containing the name of the Physics Engine.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|description=This function returns a string containing the name of the Physics Engine.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">}}</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">|additional_info=This function was added in 0.7.6-post-fixes</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Notes:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This function does not throw an exception if the threat level is not high enough. If 'os' functions are enabled this function will return an empty string if the threat level is not met. This allows vehicle scripts to always check this and not worry about exceptions.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>This function does not throw an exception if the threat level is not high enough. If 'os' functions are enabled this function will return an empty string if the threat level is not met. This allows vehicle scripts to always check this and not worry about exceptions.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX"). It is usually either "OpenDynamicsEngine" or "BulletSim".</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX"). It is usually either "OpenDynamicsEngine" or "BulletSim".</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">}}</ins></div></td></tr>
</table>Kcozenshttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=44625&oldid=prevKcozens: Added permissions, and delay information2016-12-13T21:03:54Z<p>Added permissions, and delay information</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:03, 13 December 2016</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=High</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=High</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">|permissions=true</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">|delay=0</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 36:</td>
<td colspan="2" class="diff-lineno">Line 38:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Notes:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Notes:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>This function does not throw an exception if the threat level is not high enough. If 'os' functions are enabled<del class="diffchange diffchange-inline">, </del>this function will return an empty string if the threat level is not met. This allows vehicle scripts to always check this and not worry about exceptions.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>This function does not throw an exception if the threat level is not high enough. If 'os' functions are enabled this function will return an empty string if the threat level is not met. This allows vehicle scripts to always check this and not worry about exceptions.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX"). It is usually either "OpenDynamicsEngine" or "BulletSim".</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX"). It is usually either "OpenDynamicsEngine" or "BulletSim".</div></td></tr>
</table>Kcozenshttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=39228&oldid=prevDev Random at 22:18, 27 June 20142014-06-27T22:18:09Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 22:18, 27 June 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 32:</td>
<td colspan="2" class="diff-lineno">Line 32:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|description=This function returns a string containing the <del class="diffchange diffchange-inline">current simulator version</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|description=This function returns a string containing the <ins class="diffchange diffchange-inline">name of the Physics Engine</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
</table>Dev Randomhttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=31968&oldid=prevMisterblue: Change threat level to what the code says it is: "high"2013-02-19T21:47:55Z<p>Change threat level to what the code says it is: "high"</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:47, 19 February 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|threat_level=<del class="diffchange diffchange-inline">VeryHigh</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|threat_level=<ins class="diffchange diffchange-inline">High</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td></tr>
</table>Misterbluehttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=31588&oldid=prevMisterblue: fixing more cut-and-paste problems2013-01-15T23:06:30Z<p>fixing more cut-and-paste problems</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:06, 15 January 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 28:</td>
<td colspan="2" class="diff-lineno">Line 28:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     touch_end(integer num) // Tell toucher our version</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     touch_end(integer num) // Tell toucher our version</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     {</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>         llInstantMessage(llDetectedKey(0), "<del class="diffchange diffchange-inline">Simulator Version</del>: "+osGetPhysicsEngineType());</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>         llInstantMessage(llDetectedKey(0), "<ins class="diffchange diffchange-inline">Physics engine type</ins>: "+osGetPhysicsEngineType());</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td></tr>
</table>Misterbluehttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=31579&oldid=prevMisterblue: Explanation of values returned for osGetPhysicsEngineType2013-01-15T00:10:45Z<p>Explanation of values returned for osGetPhysicsEngineType</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 00:10, 15 January 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|threat_level=<del class="diffchange diffchange-inline">High</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|threat_level=<ins class="diffchange diffchange-inline">VeryHigh</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|function_syntax=string osGetPhysicsEngineType()</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 35:</td>
<td colspan="2" class="diff-lineno">Line 35:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Notes:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">This function does not throw an exception if the threat level is not high enough. If 'os' functions are enabled, this function will return an empty string if the threat level is not met. This allows vehicle scripts to always check this and not worry about exceptions.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">The value returned is the name of the physics engine specified in the OpenSim.ini file ("physics = XXX"). It is usually either "OpenDynamicsEngine" or "BulletSim".</ins></div></td></tr>
</table>Misterbluehttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=31578&oldid=prevMisterblue: small corrections for cut-and-paste errors2013-01-15T00:05:02Z<p>small corrections for cut-and-paste errors</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 00:05, 15 January 2013</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{osslfunc</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=High</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|threat_level=High</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|function_syntax=string <del class="diffchange diffchange-inline">osGetSimulatorVersion</del>()</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|function_syntax=string <ins class="diffchange diffchange-inline">osGetPhysicsEngineType</ins>()</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang = "lsl"></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// ----------------------------------------------------------------</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// ----------------------------------------------------------------</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Example / Sample Script to show function use.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Example / Sample Script to show function use.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>// Script Title:    <del class="diffchange diffchange-inline">osGetSimulatorVersion</del>.lsl</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>// Script Title:    <ins class="diffchange diffchange-inline">osGetPhysicsEngineType</ins>.lsl</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Script Author:   </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Script Author:   </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Threat Level:    High</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Threat Level:    High</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>// Script Source:  http://opensimulator.org/wiki/<del class="diffchange diffchange-inline">OsGetSimulatorVersion</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>// Script Source:  http://opensimulator.org/wiki/<ins class="diffchange diffchange-inline">OsGetPhysicsEngineType</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Notes: See Script Source reference for more detailed information</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>// Notes: See Script Source reference for more detailed information</div></td></tr>
</table>Misterbluehttp://opensimulator.org/index.php?title=OsGetPhysicsEngineType&diff=31577&oldid=prevMisterblue: new page for osGetPhysicsEngineType()2013-01-15T00:02:46Z<p>new page for osGetPhysicsEngineType()</p>
<p><b>New page</b></p><div>{{osslfunc<br />
|threat_level=High<br />
|function_syntax=string osGetSimulatorVersion()<br />
|ossl_example=<source lang = "lsl"><br />
// ----------------------------------------------------------------<br />
// Example / Sample Script to show function use.<br />
//<br />
// Script Title: osGetSimulatorVersion.lsl<br />
// Script Author: <br />
// Threat Level: High<br />
// Script Source: http://opensimulator.org/wiki/OsGetSimulatorVersion<br />
//<br />
// Notes: See Script Source reference for more detailed information<br />
// This sample is full opensource and available to use as you see fit and desire.<br />
// Threat Levels only apply to OSSL & AA Functions<br />
// See http://opensimulator.org/wiki/Threat_level<br />
// ================================================================<br />
// Inworld Script Line: string osGetPhysicsEngineType();<br />
//<br />
// Example of osGetPhysicsEngineType()<br />
//<br />
default<br />
{<br />
state_entry() // display @ start<br />
{<br />
llSay(0, "Touch me to get the physics engine type using osGetPhysicsEngineType");<br />
}<br />
touch_end(integer num) // Tell toucher our version<br />
{<br />
llInstantMessage(llDetectedKey(0), "Simulator Version: "+osGetPhysicsEngineType());<br />
}<br />
}<br />
</source><br />
|description=This function returns a string containing the current simulator version.<br />
|<br />
}}</div>Misterblue