missing file and a bit more wiring

This commit is contained in:
UbitUmarov
2022-04-15 21:52:29 +01:00
parent 6d701b6759
commit 329440695c
2 changed files with 10 additions and 3 deletions

View File

@@ -5809,18 +5809,25 @@ namespace OpenSim.Region.Framework.Scenes
public float GetMass()
{
PhysicsActor pa = PhysicsActor;
if (pa != null)
return pa.Mass;
else
return 0;
}
internal void Jump(float impulseZ)
{
if (PhysicsActor != null)
{
PhysicsActor.AvatarJump(impulseZ);
}
}
internal void PushForce(Vector3 impulse)
{
if (PhysicsActor != null)
{
PhysicsActor.AddForce(impulse,true);
PhysicsActor.AddForce(impulse, true);
}
}

View File

@@ -261,7 +261,7 @@ namespace OpenSim.Region.PhysicsModule.ODE
private uint m_regionWidth = Constants.RegionSize;
private uint m_regionHeight = Constants.RegionSize;
private float ODE_STEPSIZE = 0.0178f;
public float ODE_STEPSIZE = 0.0178f;
private float metersInSpace = 29.9f;
private float m_timeDilation = 1.0f;