remove effect of avatar mass, so all jump similar height

This commit is contained in:
UbitUmarov
2022-04-16 13:41:31 +01:00
parent 1bf5ccedec
commit dea7b7b1a7
4 changed files with 6 additions and 5 deletions

View File

@@ -808,7 +808,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
public override void AvatarJump(float impulseZ)
{
AddChange(changes.Force, new Vector3(0, 0, impulseZ * m_sceneInverseTimeStep));
// convert back to force and remove mass effect
AddChange(changes.Force, new Vector3(0, 0, impulseZ * m_sceneInverseTimeStep * m_mass));
}
public override void AddAngularForce(Vector3 force, bool pushforce)