BulletSim/ScriptFunctions
From OpenSimulator
Misterblue (Talk | contribs) (Some initial function prototypes) |
Misterblue (Talk | contribs) (Initial table for phyChangeLinkParams) |
||
Line 24: | Line 24: | ||
<tt>PHYS_LINKSET_TYPE_MANUAL = 2</tt> | <tt>PHYS_LINKSET_TYPE_MANUAL = 2</tt> | ||
− | <tt>void physSetLinksetType( | + | <tt>void physSetLinksetType(integer linksetTypeCode)</tt> |
<tt>void physSetCenterOfMass(vector centerOfMassDisplacement)</tt> | <tt>void physSetCenterOfMass(vector centerOfMassDisplacement)</tt> | ||
== Extended Linksets == | == Extended Linksets == | ||
+ | |||
+ | <tt>void physChangeLinkParams(integer linkNum, list parms)</tt> | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Flag | ||
+ | ! Description | ||
+ | ! Usage | ||
+ | |- | ||
+ | |PHYS_PARAM_LINK_TYPE | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_FRAMEINA_LOC | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_FRAMEINA_ROT | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_FRAMEINB_LOC | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_FRAMEINA_ROT | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_LINEAR_LIMIT_LOW | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_LINEAR_LIMIT_HIGH | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_ANGULAR_LIMIT_LOW | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_ANGULAR_LIMIT_HIGH | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_USE_FRAME_OFFSET | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_ENABLE_TRANSMOTOR | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_TRANSMOTOR_MAXVEL | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_TRANSMOTOR_MAXFORCE | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_CFM | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_ERP | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_SOLVER_ITERATIONS | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |PHYS_PARAM_SPRING_AXIS_ENABLE | ||
+ | | | ||
+ | |[PHYS_PARAM_SPRING_AXIS_ENABLE, int axisCode, bool flag] | ||
+ | |- | ||
+ | |PHYS_PARAM_SPRING_DAMPING | ||
+ | | | ||
+ | |[PHYS_PARAM_SPRING_DAMPING, int axisCode, float damping] | ||
+ | |- | ||
+ | |PHYS_PARAM_SPRING_STIFFNESS | ||
+ | | | ||
+ | |[PHYS_PARAM_SPRING_STIFFNESS, int axisCode, float stiffness] | ||
+ | |- | ||
+ | |} |
Revision as of 14:37, 22 August 2013
OpenSimulator => BulletSim => Script Functions
BulletSim Script Functions
Contents |
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(integer linksetTypeCode)
void physSetCenterOfMass(vector centerOfMassDisplacement)
Extended Linksets
void physChangeLinkParams(integer linkNum, list parms)
Flag | Description | Usage |
---|---|---|
PHYS_PARAM_LINK_TYPE | ||
PHYS_PARAM_FRAMEINA_LOC | ||
PHYS_PARAM_FRAMEINA_ROT | ||
PHYS_PARAM_FRAMEINB_LOC | ||
PHYS_PARAM_FRAMEINA_ROT | ||
PHYS_PARAM_LINEAR_LIMIT_LOW | ||
PHYS_PARAM_LINEAR_LIMIT_HIGH | ||
PHYS_PARAM_ANGULAR_LIMIT_LOW | ||
PHYS_PARAM_ANGULAR_LIMIT_HIGH | ||
PHYS_PARAM_USE_FRAME_OFFSET | ||
PHYS_PARAM_ENABLE_TRANSMOTOR | ||
PHYS_PARAM_TRANSMOTOR_MAXVEL | ||
PHYS_PARAM_TRANSMOTOR_MAXFORCE | ||
PHYS_PARAM_CFM | ||
PHYS_PARAM_ERP | ||
PHYS_PARAM_SOLVER_ITERATIONS | ||
PHYS_PARAM_SPRING_AXIS_ENABLE | [PHYS_PARAM_SPRING_AXIS_ENABLE, int axisCode, bool flag] | |
PHYS_PARAM_SPRING_DAMPING | [PHYS_PARAM_SPRING_DAMPING, int axisCode, float damping] | |
PHYS_PARAM_SPRING_STIFFNESS | [PHYS_PARAM_SPRING_STIFFNESS, int axisCode, float stiffness] |