mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
BulletSim: adjust avatar step up parameters to better walk up small
staircases. This change is required because of the change in the avatar default shape from the capsule to the rectangle.
This commit is contained in:
@@ -399,8 +399,8 @@ public class BSActorAvatarMove : BSActor
|
||||
m_controllingPrim.ForcePosition = m_controllingPrim.RawPosition + displacement;
|
||||
}
|
||||
}
|
||||
m_physicsScene.DetailLog("{0},BSCharacter.WalkUpStairs.ComputeStairCorrection,disp={1},force={2}",
|
||||
m_controllingPrim.LocalID, displacement, ret);
|
||||
m_physicsScene.DetailLog("{0},BSCharacter.WalkUpStairs.ComputeStairCorrection,stepUp={1},isp={2},force={3}",
|
||||
m_controllingPrim.LocalID, stepUp, displacement, ret);
|
||||
|
||||
}
|
||||
return ret;
|
||||
|
||||
@@ -598,9 +598,9 @@ public static class BSParam
|
||||
new ParameterDefn<float>("AvatarStepForceFactor", "Controls the amount of force up applied to step up onto a step",
|
||||
1.0f ),
|
||||
new ParameterDefn<float>("AvatarStepUpCorrectionFactor", "Multiplied by height of step collision to create up movement at step",
|
||||
1.0f ),
|
||||
2.0f ),
|
||||
new ParameterDefn<int>("AvatarStepSmoothingSteps", "Number of frames after a step collision that we continue walking up stairs",
|
||||
2 ),
|
||||
1 ),
|
||||
|
||||
new ParameterDefn<float>("VehicleMaxLinearVelocity", "Maximum velocity magnitude that can be assigned to a vehicle",
|
||||
1000.0f,
|
||||
|
||||
Reference in New Issue
Block a user