* ODE Physics update. fixed weird rotation of the avatar surrogate.

* Set the avatar's radius to 0.37m, I think this gives the *best* balance between spaces the avatar can fit, and the ability to climb steps
* Fixed a few things
* Tweaked some more
* Played with gravity (-9.8m/s)
This commit is contained in:
Teravus Ovares
2008-01-18 02:26:43 +00:00
parent 333826903c
commit ecd6c1110a
3 changed files with 44 additions and 27 deletions

View File

@@ -174,7 +174,7 @@ namespace OpenSim.Region.Physics.OdePlugin
// Set the gravity,, don't disable things automatically (we set it explicitly on some things)
d.WorldSetGravity(world, 0.0f, 0.0f, -10.0f);
d.WorldSetGravity(world, 0.0f, 0.0f, -9.8f);
d.WorldSetAutoDisableFlag(world, false);
d.WorldSetContactSurfaceLayer(world, 0.001f);
@@ -336,8 +336,8 @@ namespace OpenSim.Region.Physics.OdePlugin
if (contacts[i].depth >= 0.08f)
{
/* This is disabled at the moment only because it needs more tweaking
It will eventually be uncommented
//This is disabled at the moment only because it needs more tweaking
//It will eventually be uncommented
if (contacts[i].depth >= 1.00f)
{
@@ -363,7 +363,7 @@ namespace OpenSim.Region.Physics.OdePlugin
else
{
contacts[i].depth = 0.0000000f;
//contacts[i].depth = 0.0000000f;
}
if (p1.PhysicsActorType == (int) ActorTypes.Agent)
{
@@ -378,10 +378,10 @@ namespace OpenSim.Region.Physics.OdePlugin
else
{
contacts[i].depth = 0.0000000f;
//contacts[i].depth = 0.0000000f;
}
}
*/
// If you interpenetrate a prim with another prim
if (p1.PhysicsActorType == (int) ActorTypes.Prim && p2.PhysicsActorType == (int) ActorTypes.Prim)