mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
remove effect of avatar mass, so all jump similar height
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user