mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Thank you Teravus, very much, for a 'jump', 'crouch' and 'inertia' patch for all three physics plugins.
This commit is contained in:
@@ -643,6 +643,7 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
private PhysicsVector _acceleration;
|
||||
private AxiomQuaternion _orientation;
|
||||
private bool flying;
|
||||
private bool iscolliding = false;
|
||||
private RigidBody rigidBody;
|
||||
|
||||
public Vector3 RigidBodyPosition
|
||||
@@ -773,6 +774,11 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
get { return flying; }
|
||||
set { flying = value; }
|
||||
}
|
||||
public override bool IsColliding
|
||||
{
|
||||
get { return iscolliding; }
|
||||
set { iscolliding = value; }
|
||||
}
|
||||
|
||||
public void SetAcceleration(PhysicsVector accel)
|
||||
{
|
||||
@@ -913,6 +919,7 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
private BulletXScene _parent_scene;
|
||||
//_physical value will be linked with the prim object value
|
||||
private Boolean _physical = false;
|
||||
private Boolean iscolliding = false;
|
||||
|
||||
public Vector3 RigidBodyPosition
|
||||
{
|
||||
@@ -1060,6 +1067,11 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
set { }
|
||||
}
|
||||
|
||||
public override bool IsColliding
|
||||
{
|
||||
get { return iscolliding; }
|
||||
set { iscolliding = value; }
|
||||
}
|
||||
public Boolean Physical
|
||||
{
|
||||
get { return _physical; }
|
||||
@@ -1304,4 +1316,4 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
return height;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user