aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/POSPlugin
diff options
context:
space:
mode:
authorJeff Ames2007-12-19 08:44:25 +0000
committerJeff Ames2007-12-19 08:44:25 +0000
commit6702b0373371fd2a546a580ad82f5cc175fa29e0 (patch)
treef2750d5be494d2a976cb583476c4f32ef3d895d7 /OpenSim/Region/Physics/POSPlugin
parent*Added Ban Lines around parcels for banned avatars, but there is no actual bl... (diff)
downloadopensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.zip
opensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.tar.gz
opensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.tar.bz2
opensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.tar.xz
Misc. cleanup:
* added Util.Clip(value, min, max) * modified asset cache's numPackets calculation to use max packet size (600) instead of 1000 * removed a few magic numbers
Diffstat (limited to 'OpenSim/Region/Physics/POSPlugin')
-rw-r--r--OpenSim/Region/Physics/POSPlugin/POSPlugin.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
index efc30fe..a565598 100644
--- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
+++ b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
@@ -166,7 +166,6 @@ namespace OpenSim.Region.Physics.POSPlugin
166 166
167 public override void AddPhysicsActorTaint(PhysicsActor prim) 167 public override void AddPhysicsActorTaint(PhysicsActor prim)
168 { 168 {
169
170 } 169 }
171 170
172 public override float Simulate(float timeStep) 171 public override float Simulate(float timeStep)
@@ -187,8 +186,8 @@ namespace OpenSim.Region.Physics.POSPlugin
187 } 186 }
188 187
189 bool forcedZ = false; 188 bool forcedZ = false;
190 character.Position.X = character.Position.X + (character._target_velocity.X * timeStep); 189 character.Position.X += character._target_velocity.X * timeStep;
191 character.Position.Y = character.Position.Y + (character._target_velocity.Y * timeStep); 190 character.Position.Y += character._target_velocity.Y * timeStep;
192 191
193 if (character.Position.Y < 0) 192 if (character.Position.Y < 0)
194 { 193 {
@@ -216,7 +215,7 @@ namespace OpenSim.Region.Physics.POSPlugin
216 } 215 }
217 else 216 else
218 { 217 {
219 character.Position.Z = character.Position.Z + (character._target_velocity.Z * timeStep); 218 character.Position.Z += character._target_velocity.Z * timeStep;
220 } 219 }
221 220
222 /// this is it -- the magic you've all been waiting for! Ladies and gentlemen -- 221 /// this is it -- the magic you've all been waiting for! Ladies and gentlemen --