diff options
author | UbitUmarov | 2012-12-11 17:14:32 +0000 |
---|---|---|
committer | UbitUmarov | 2012-12-11 17:14:32 +0000 |
commit | 28ea08c3e234f8ca3c6590af4045349af7fed844 (patch) | |
tree | 744b0040d1aa64fea05cfa5513a0d4f50f059fea /OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |
parent | missing files remove some warnings... (diff) | |
download | opensim-SC-28ea08c3e234f8ca3c6590af4045349af7fed844.zip opensim-SC-28ea08c3e234f8ca3c6590af4045349af7fed844.tar.gz opensim-SC-28ea08c3e234f8ca3c6590af4045349af7fed844.tar.bz2 opensim-SC-28ea08c3e234f8ca3c6590af4045349af7fed844.tar.xz |
fix let other phys plugins work.. broken when added feetOffset
Diffstat (limited to 'OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs')
-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; |