BulletSim/ScriptFunctions

OpenSimulator => BulletSim => Script Functions

BulletSim Script Functions

Physics engines have an extension interface enabling extended functions. BulletSim adds script functions which call the extension interface and add control of physics parameters and new functionality.

This feature requires the mod_invoke feature to be enabled on the region the script is running on.

Information
string physGetEngineType

string physGetPhysicsParameter(string parameterName)

void physSetPhysicsParameter(string parameterName, string value)

Physics Parameters
PHYS_LINKSET_TYPE_CONSTRAINT = 0

PHYS_LINKSET_TYPE_COMPOUND = 1

PHYS_LINKSET_TYPE_MANUAL = 2

void physSetLinksetType(int linksetTypeCode)

void physSetCenterOfMass(vector centerOfMassDisplacement)