diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs index 1b25faf..b769c88 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |||
@@ -165,9 +165,10 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
165 | 165 | ||
166 | 166 | ||
167 | 167 | ||
168 | public OdeCharacter(String avName, OdeScene parent_scene, Vector3 pos, Vector3 pSize, float pfeetOffset, float density, float walk_divisor, float rundivisor) | 168 | public OdeCharacter(uint localID, String avName, OdeScene parent_scene, Vector3 pos, Vector3 pSize, float pfeetOffset, float density, float walk_divisor, float rundivisor) |
169 | { | 169 | { |
170 | m_uuid = UUID.Random(); | 170 | m_uuid = UUID.Random(); |
171 | m_localID = localID; | ||
171 | 172 | ||
172 | timeStep = parent_scene.ODE_STEPSIZE; | 173 | timeStep = parent_scene.ODE_STEPSIZE; |
173 | invtimeStep = 1 / timeStep; | 174 | invtimeStep = 1 / timeStep; |
@@ -1209,7 +1210,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1209 | 1210 | ||
1210 | d.AABB aabb; | 1211 | d.AABB aabb; |
1211 | d.GeomGetAABB(feetbox, out aabb); | 1212 | d.GeomGetAABB(feetbox, out aabb); |
1212 | float chrminZ = aabb.MinZ - 0.02f; // move up a bit | 1213 | float chrminZ = aabb.MinZ; ; // move up a bit |
1213 | Vector3 posch = localpos; | 1214 | Vector3 posch = localpos; |
1214 | 1215 | ||
1215 | float ftmp; | 1216 | float ftmp; |
@@ -1252,7 +1253,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1252 | contact.PenetrationDepth = depth; | 1253 | contact.PenetrationDepth = depth; |
1253 | contact.Position.X = localpos.X; | 1254 | contact.Position.X = localpos.X; |
1254 | contact.Position.Y = localpos.Y; | 1255 | contact.Position.Y = localpos.Y; |
1255 | contact.Position.Z = chrminZ; | 1256 | contact.Position.Z = terrainheight; |
1256 | contact.SurfaceNormal.X = 0.0f; | 1257 | contact.SurfaceNormal.X = 0.0f; |
1257 | contact.SurfaceNormal.Y = 0.0f; | 1258 | contact.SurfaceNormal.Y = 0.0f; |
1258 | contact.SurfaceNormal.Z = -1f; | 1259 | contact.SurfaceNormal.Z = -1f; |