mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +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:
@@ -686,6 +686,12 @@ namespace OpenSim.Region.PhysicsModule.BulletS
|
||||
set { _PIDTau = value; }
|
||||
}
|
||||
|
||||
public override void AvatarJump(float forceZ)
|
||||
{
|
||||
OMV.Vector3 addForce = new OMV.Vector3(0, 0, forceZ / PhysScene.m_fixedTimeStep);
|
||||
AddForce(false, addForce);
|
||||
}
|
||||
|
||||
public override void AddForce(OMV.Vector3 force, bool pushforce)
|
||||
{
|
||||
// Since this force is being applied in only one step, make this a force per second.
|
||||
|
||||
Reference in New Issue
Block a user