From 87c81b5172e98a31405d924cbdb4b7ef271f3c38 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Wed, 6 Mar 2019 10:29:46 -0800 Subject: BulletSim: Add delay to stationary check after adding force to Avatar. Fix to Mantis 8496. Add parameter [BulletSim] AvatarAddForceFrames. --- OpenSim/Region/PhysicsModules/BulletS/BSParam.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/PhysicsModules/BulletS/BSParam.cs') diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs b/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs index 495f752..d80b050 100755 --- a/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/BSParam.cs @@ -149,6 +149,7 @@ public static class BSParam public static float AvatarHeightHighFudge { get; private set; } public static float AvatarFlyingGroundMargin { get; private set; } public static float AvatarFlyingGroundUpForce { get; private set; } + public static int AvatarAddForceFrames { get; private set; } public static float AvatarTerminalVelocity { get; private set; } public static float AvatarContactProcessingThreshold { get; private set; } public static float AvatarAddForcePushFactor { get; private set; } @@ -634,6 +635,8 @@ public static class BSParam 5f ), new ParameterDefn("AvatarFlyingGroundUpForce", "Upward force applied to the avatar to keep it at flying ground margin", 2.0f ), + new ParameterDefn("AvatarAddForceFrames", "Frames to allow AddForce to apply before checking for stationary", + 10 ), new ParameterDefn("AvatarTerminalVelocity", "Terminal Velocity of falling avatar", -54.0f ), new ParameterDefn("AvatarContactProcessingThreshold", "Distance from capsule to check for collisions", -- cgit v1.1