need to process all mv flags for now

This commit is contained in:
UbitUmarov
2022-04-16 03:30:46 +01:00
parent b8e0aaa7b3
commit 1bf5ccedec
3 changed files with 6 additions and 6 deletions

View File

@@ -2751,8 +2751,8 @@ namespace OpenSim.Region.Framework.Scenes
{
DCFlagKeyPressed = true;
MovementFlag |= currflags;
update_movementflag |= (currflags ^ oldflags) != 0;
//update_movementflag |= currflags != 0;
//update_movementflag |= (currflags ^ oldflags) != 0;
update_movementflag = true;
if ((currflags & CONTROL_FLAG_NUDGE_MASK) != 0)
{

View File

@@ -686,9 +686,9 @@ namespace OpenSim.Region.PhysicsModule.BulletS
set { _PIDTau = value; }
}
public override void AvatarJump(float forceZ)
public override void AvatarJump(float impulseZ)
{
AddForce(false, new OMV.Vector3(0, 0, 0.22f * forceZ / PhysScene.m_fixedTimeStep));
AddForce(false, new OMV.Vector3(0, 0, 0.22f * impulseZ / PhysScene.m_fixedTimeStep));
}
public override void AddForce(OMV.Vector3 force, bool pushforce)

View File

@@ -806,9 +806,9 @@ namespace OpenSim.Region.PhysicsModule.ubOde
//m_lastUpdateSent = false;
}
public override void AvatarJump(float forceZ)
public override void AvatarJump(float impulseZ)
{
AddChange(changes.Force, new Vector3(0, 0, forceZ * m_sceneInverseTimeStep));
AddChange(changes.Force, new Vector3(0, 0, impulseZ * m_sceneInverseTimeStep));
}
public override void AddAngularForce(Vector3 force, bool pushforce)