mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
Implement llSetPrimitiveParams for physics shape and material. Add
llSetPhysicsMaterial support.
This commit is contained in:
@@ -570,6 +570,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
public const int PRIM_MEDIA_PERM_OWNER = 1;
|
||||
public const int PRIM_MEDIA_PERM_GROUP = 2;
|
||||
public const int PRIM_MEDIA_PERM_ANYONE = 4;
|
||||
|
||||
public const int PRIM_PHYSICS_SHAPE_TYPE = 30;
|
||||
public const int PRIM_PHYSICS_SHAPE_PRIM = 0;
|
||||
public const int PRIM_PHYSICS_SHAPE_CONVEX = 2;
|
||||
public const int PRIM_PHYSICS_SHAPE_NONE = 1;
|
||||
|
||||
public const int PRIM_PHYSICS_MATERIAL = 31;
|
||||
public const int DENSITY = 1;
|
||||
public const int FRICTION = 2;
|
||||
public const int RESTITUTION = 4;
|
||||
public const int GRAVITY_MULTIPLIER = 8;
|
||||
|
||||
// extra constants for llSetPrimMediaParams
|
||||
public static readonly LSLInteger LSL_STATUS_OK = new LSLInteger(0);
|
||||
|
||||
@@ -1949,5 +1949,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
{
|
||||
m_LSL_Functions.llSetKeyframedMotion(frames, options);
|
||||
}
|
||||
|
||||
public void llSetPhysicsMaterial(int material_bits, float material_gravity_modifier, float material_restitution, float material_friction, float material_density)
|
||||
{
|
||||
m_LSL_Functions.llSetPhysicsMaterial(material_bits, material_gravity_modifier, material_restitution, material_friction, material_density);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user