aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 8e5907c..1767623 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -1742,12 +1742,18 @@ namespace OpenSim.Region.Environment.Scenes
1742 public void AddToPhysicalScene() 1742 public void AddToPhysicalScene()
1743 { 1743 {
1744 PhysicsScene scene = m_scene.PhysicsScene; 1744 PhysicsScene scene = m_scene.PhysicsScene;
1745 1745
1746 PhysicsVector pVec = 1746 PhysicsVector pVec =
1747 new PhysicsVector(AbsolutePosition.X, AbsolutePosition.Y, 1747 new PhysicsVector(AbsolutePosition.X, AbsolutePosition.Y,
1748 AbsolutePosition.Z); 1748 AbsolutePosition.Z);
1749 1749 if (m_avHeight == 127.0f)
1750 m_physicsActor = scene.AddAvatar(Firstname + "." + Lastname, pVec,new PhysicsVector(0,0,m_avHeight)); 1750 {
1751 m_physicsActor = scene.AddAvatar(Firstname + "." + Lastname, pVec, new PhysicsVector(0, 0, 1.56f));
1752 }
1753 else
1754 {
1755 m_physicsActor = scene.AddAvatar(Firstname + "." + Lastname, pVec, new PhysicsVector(0, 0, m_avHeight));
1756 }
1751 //m_physicsActor.OnRequestTerseUpdate += SendTerseUpdateToAllClients; 1757 //m_physicsActor.OnRequestTerseUpdate += SendTerseUpdateToAllClients;
1752 m_physicsActor.OnCollisionUpdate += PhysicsCollisionUpdate; 1758 m_physicsActor.OnCollisionUpdate += PhysicsCollisionUpdate;
1753 } 1759 }