mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
add AvatarJump to phsycis engines. This is just a push in Z direction, Still needs scaling so engines to match. This new scaling is needed so does not impact old push ones
This commit is contained in:
@@ -742,6 +742,13 @@ namespace OpenSim.Region.PhysicsModule.ODE
|
||||
set { _acceleration = value; }
|
||||
}
|
||||
|
||||
public override void AvatarJump(float forceZ)
|
||||
{
|
||||
m_pidControllerActive = false;
|
||||
m_taintForce += new Vector3(0, 0, forceZ / _parent_scene.ODE_STEPSIZE);
|
||||
_parent_scene.AddPhysicsActorTaint(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the force supplied to the Target Velocity
|
||||
/// The PID controller takes this target velocity and tries to make it a reality
|
||||
|
||||
Reference in New Issue
Block a user