* Probably fixed the corner freeze bug. On uninitialized avatar, ODEPlugin was trying to set the height of avatar to 127m, which you can imagine is a bit /wrong\
parent
359f84ee43
commit
056f3dca2c
|
@ -1746,8 +1746,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
PhysicsVector pVec =
|
PhysicsVector pVec =
|
||||||
new PhysicsVector(AbsolutePosition.X, AbsolutePosition.Y,
|
new PhysicsVector(AbsolutePosition.X, AbsolutePosition.Y,
|
||||||
AbsolutePosition.Z);
|
AbsolutePosition.Z);
|
||||||
|
if (m_avHeight == 127.0f)
|
||||||
|
{
|
||||||
|
m_physicsActor = scene.AddAvatar(Firstname + "." + Lastname, pVec, new PhysicsVector(0, 0, 1.56f));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_physicsActor = scene.AddAvatar(Firstname + "." + Lastname, pVec, new PhysicsVector(0, 0, m_avHeight));
|
m_physicsActor = scene.AddAvatar(Firstname + "." + Lastname, pVec, new PhysicsVector(0, 0, m_avHeight));
|
||||||
|
}
|
||||||
//m_physicsActor.OnRequestTerseUpdate += SendTerseUpdateToAllClients;
|
//m_physicsActor.OnRequestTerseUpdate += SendTerseUpdateToAllClients;
|
||||||
m_physicsActor.OnCollisionUpdate += PhysicsCollisionUpdate;
|
m_physicsActor.OnCollisionUpdate += PhysicsCollisionUpdate;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue