diff options
author | Jeff Ames | 2009-06-10 04:28:56 +0000 |
---|---|---|
committer | Jeff Ames | 2009-06-10 04:28:56 +0000 |
commit | a23d64dec1cbf88abc3c7e84664a683dee534e4a (patch) | |
tree | 7e85403f29839775209481ba7f6ee55aac56f209 /OpenSim/Region/Physics/OdePlugin | |
parent | Letting the Flotsam cache be enabled even when [AssetCache] section is missin... (diff) | |
download | opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.zip opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.gz opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.bz2 opensim-SC_OLD-a23d64dec1cbf88abc3c7e84664a683dee534e4a.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin')
4 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 6759fd9..3f0d6c1 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -1116,7 +1116,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1116 | m_log.Warn("[PHYSICS]: re-creating the following avatar ODE data, even though it already exists - " | 1116 | m_log.Warn("[PHYSICS]: re-creating the following avatar ODE data, even though it already exists - " |
1117 | + (Shell!=IntPtr.Zero ? "Shell ":"") | 1117 | + (Shell!=IntPtr.Zero ? "Shell ":"") |
1118 | + (Body!=IntPtr.Zero ? "Body ":"") | 1118 | + (Body!=IntPtr.Zero ? "Body ":"") |
1119 | + (Amotor!=IntPtr.Zero ? "Amotor ":"") ); | 1119 | + (Amotor!=IntPtr.Zero ? "Amotor ":"")); |
1120 | } | 1120 | } |
1121 | AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z, m_tensor); | 1121 | AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z, m_tensor); |
1122 | 1122 | ||
@@ -1182,7 +1182,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1182 | m_log.Warn("[PHYSICS]: trying to change capsule size, but the following ODE data is missing - " | 1182 | m_log.Warn("[PHYSICS]: trying to change capsule size, but the following ODE data is missing - " |
1183 | + (Shell==IntPtr.Zero ? "Shell ":"") | 1183 | + (Shell==IntPtr.Zero ? "Shell ":"") |
1184 | + (Body==IntPtr.Zero ? "Body ":"") | 1184 | + (Body==IntPtr.Zero ? "Body ":"") |
1185 | + (Amotor==IntPtr.Zero ? "Amotor ":"") ); | 1185 | + (Amotor==IntPtr.Zero ? "Amotor ":"")); |
1186 | } | 1186 | } |
1187 | } | 1187 | } |
1188 | 1188 | ||
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index e6f45c8..d8d3b68 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -2593,7 +2593,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2593 | if ((Math.Abs(m_lastposition.X - l_position.X) < 0.02) | 2593 | if ((Math.Abs(m_lastposition.X - l_position.X) < 0.02) |
2594 | && (Math.Abs(m_lastposition.Y - l_position.Y) < 0.02) | 2594 | && (Math.Abs(m_lastposition.Y - l_position.Y) < 0.02) |
2595 | && (Math.Abs(m_lastposition.Z - l_position.Z) < 0.02) | 2595 | && (Math.Abs(m_lastposition.Z - l_position.Z) < 0.02) |
2596 | && (1.0 - Math.Abs(Quaternion.Dot(m_lastorientation, l_orientation)) < 0.01 )) | 2596 | && (1.0 - Math.Abs(Quaternion.Dot(m_lastorientation, l_orientation)) < 0.01)) |
2597 | { | 2597 | { |
2598 | _zeroFlag = true; | 2598 | _zeroFlag = true; |
2599 | m_throttleUpdates = false; | 2599 | m_throttleUpdates = false; |
@@ -2981,7 +2981,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2981 | Matrix4 transposeMatrix = new Matrix4(); | 2981 | Matrix4 transposeMatrix = new Matrix4(); |
2982 | for (int i = 0; i < 4; i++) | 2982 | for (int i = 0; i < 4; i++) |
2983 | for (int j = 0; j < 4; j++) | 2983 | for (int j = 0; j < 4; j++) |
2984 | Matrix4SetValue( ref transposeMatrix, i, j, pMat[j, i]); | 2984 | Matrix4SetValue(ref transposeMatrix, i, j, pMat[j, i]); |
2985 | return transposeMatrix; | 2985 | return transposeMatrix; |
2986 | } | 2986 | } |
2987 | 2987 | ||
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEVehicleSettings.cs b/OpenSim/Region/Physics/OdePlugin/ODEVehicleSettings.cs index e6b84ae..063b14f 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEVehicleSettings.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEVehicleSettings.cs | |||
@@ -234,7 +234,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
234 | SetDefaultsForType(pType); | 234 | SetDefaultsForType(pType); |
235 | Reset(); | 235 | Reset(); |
236 | } | 236 | } |
237 | else if (m_type != Vehicle.TYPE_NONE && pType != Vehicle.TYPE_NONE ) | 237 | else if (m_type != Vehicle.TYPE_NONE && pType != Vehicle.TYPE_NONE) |
238 | { | 238 | { |
239 | // Set properties | 239 | // Set properties |
240 | SetDefaultsForType(pType); | 240 | SetDefaultsForType(pType); |
@@ -408,7 +408,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
408 | // m_bankingMix = 0.8f; | 408 | // m_bankingMix = 0.8f; |
409 | // m_bankingTimescale = 1; | 409 | // m_bankingTimescale = 1; |
410 | // m_referenceFrame = Quaternion.Identity; | 410 | // m_referenceFrame = Quaternion.Identity; |
411 | m_flags &= ~( VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT); | 411 | m_flags &= ~(VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT); |
412 | m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_UP_ONLY | | 412 | m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_UP_ONLY | |
413 | VehicleFlag.LIMIT_MOTOR_UP); | 413 | VehicleFlag.LIMIT_MOTOR_UP); |
414 | break; | 414 | break; |
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 713269c..60ac724 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -3261,7 +3261,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
3261 | d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmap, 0, heightmapWidth, heightmapHeight, | 3261 | d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmap, 0, heightmapWidth, heightmapHeight, |
3262 | (int) heightmapWidthSamples, (int) heightmapHeightSamples, scale, | 3262 | (int) heightmapWidthSamples, (int) heightmapHeightSamples, scale, |
3263 | offset, thickness, wrap); | 3263 | offset, thickness, wrap); |
3264 | d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1 , hfmax + 1 ); | 3264 | d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1 , hfmax + 1); |
3265 | LandGeom = d.CreateHeightfield(space, HeightmapData, 1); | 3265 | LandGeom = d.CreateHeightfield(space, HeightmapData, 1); |
3266 | if (LandGeom != IntPtr.Zero) | 3266 | if (LandGeom != IntPtr.Zero) |
3267 | { | 3267 | { |