Add physDisableDeactivation() LSL function to ExtendedPhysics.

Add implementation of physDisableDeactivation to BulletSim.
This commit is contained in:
Robert Adams
2023-05-23 16:41:22 +00:00
parent dd9e365e00
commit cafbf1c977
3 changed files with 131 additions and 57 deletions

View File

@@ -114,6 +114,8 @@ namespace OpenSim.Region.PhysicsModule.BulletS
// All axis free.
LockedLinearAxis = LockedAxisFree;
LockedAngularAxis = LockedAxisFree;
DisableDeactivation = false; // by default, objects can be deactivated (ie, not checked for collisions)
}
// Tell the object to clean up.
@@ -371,6 +373,9 @@ namespace OpenSim.Region.PhysicsModule.BulletS
// Note this is a displacement from the root's coordinates. Zero means use the root prim as center-of-mass.
public OMV.Vector3? UserSetCenterOfMassDisplacement { get; set; }
// Set 'true' if physical object should never be deactivated
public bool DisableDeactivation;
public OMV.Vector3 LockedLinearAxis; // zero means locked. one means free.
public OMV.Vector3 LockedAngularAxis; // zero means locked. one means free.
public const float FreeAxis = 1f;