aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorTeravus Ovares2008-05-06 00:23:19 +0000
committerTeravus Ovares2008-05-06 00:23:19 +0000
commit240e8646dac402068930065c1fb792e647f1ce4b (patch)
tree10064eea011ac7155c947b11a64bcc650feb6dbb /OpenSim/Region/Physics
parent* Refactor: Break out permissions code into a separate region PermissionsModule (diff)
downloadopensim-SC_OLD-240e8646dac402068930065c1fb792e647f1ce4b.zip
opensim-SC_OLD-240e8646dac402068930065c1fb792e647f1ce4b.tar.gz
opensim-SC_OLD-240e8646dac402068930065c1fb792e647f1ce4b.tar.bz2
opensim-SC_OLD-240e8646dac402068930065c1fb792e647f1ce4b.tar.xz
* If you llApplyImpulse on an attachment, it applies impulse on the avatar, not the attachment.
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs2
-rw-r--r--OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs10
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs4
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODECharacter.cs21
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs2
-rw-r--r--OpenSim/Region/Physics/POSPlugin/POSPlugin.cs4
-rw-r--r--OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs4
7 files changed, 29 insertions, 18 deletions
diff --git a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
index 0d54dad..eecd115 100644
--- a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
+++ b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
@@ -384,7 +384,7 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
384 _acceleration = accel; 384 _acceleration = accel;
385 } 385 }
386 386
387 public override void AddForce(PhysicsVector force) 387 public override void AddForce(PhysicsVector force, bool pushforce)
388 { 388 {
389 } 389 }
390 390
diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
index 9bd5f08..8a79dd6 100644
--- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
+++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
@@ -917,7 +917,7 @@ namespace OpenSim.Region.Physics.BulletXPlugin
917 set { } 917 set { }
918 } 918 }
919 919
920 public override void AddForce(PhysicsVector force) 920 public override void AddForce(PhysicsVector force, bool pushforce)
921 { 921 {
922 } 922 }
923 923
@@ -1134,9 +1134,9 @@ namespace OpenSim.Region.Physics.BulletXPlugin
1134 base.SetAcceleration(accel); 1134 base.SetAcceleration(accel);
1135 } 1135 }
1136 1136
1137 public override void AddForce(PhysicsVector force) 1137 public override void AddForce(PhysicsVector force, bool pushforce)
1138 { 1138 {
1139 base.AddForce(force); 1139 base.AddForce(force, pushforce);
1140 } 1140 }
1141 1141
1142 public override void SetMomentum(PhysicsVector momentum) 1142 public override void SetMomentum(PhysicsVector momentum)
@@ -1343,9 +1343,9 @@ namespace OpenSim.Region.Physics.BulletXPlugin
1343 } 1343 }
1344 } 1344 }
1345 1345
1346 public override void AddForce(PhysicsVector force) 1346 public override void AddForce(PhysicsVector force, bool pushforce)
1347 { 1347 {
1348 base.AddForce(force); 1348 base.AddForce(force,pushforce);
1349 } 1349 }
1350 1350
1351 public override void SetMomentum(PhysicsVector momentum) 1351 public override void SetMomentum(PhysicsVector momentum)
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 046c285..c1dc91b 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -196,7 +196,7 @@ namespace OpenSim.Region.Physics.Manager
196 public abstract float PIDTau { set; } 196 public abstract float PIDTau { set; }
197 197
198 198
199 public abstract void AddForce(PhysicsVector force); 199 public abstract void AddForce(PhysicsVector force, bool pushforce);
200 public abstract void SetMomentum(PhysicsVector momentum); 200 public abstract void SetMomentum(PhysicsVector momentum);
201 public abstract void SubscribeEvents(int ms); 201 public abstract void SubscribeEvents(int ms);
202 public abstract void UnSubscribeEvents(); 202 public abstract void UnSubscribeEvents();
@@ -365,7 +365,7 @@ namespace OpenSim.Region.Physics.Manager
365 { 365 {
366 } 366 }
367 367
368 public override void AddForce(PhysicsVector force) 368 public override void AddForce(PhysicsVector force, bool pushforce)
369 { 369 {
370 } 370 }
371 371
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
index 3d0855f..17e041d 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
@@ -610,13 +610,24 @@ namespace OpenSim.Region.Physics.OdePlugin
610 /// The PID controller takes this target velocity and tries to make it a reality 610 /// The PID controller takes this target velocity and tries to make it a reality
611 /// </summary> 611 /// </summary>
612 /// <param name="force"></param> 612 /// <param name="force"></param>
613 public override void AddForce(PhysicsVector force) 613 public override void AddForce(PhysicsVector force, bool pushforce)
614 { 614 {
615 m_pidControllerActive = true; 615 if (pushforce)
616 _target_velocity.X += force.X; 616 {
617 _target_velocity.Y += force.Y; 617 m_pidControllerActive = false;
618 _target_velocity.Z += force.Z; 618 doForce(force);
619 619
620 //_target_velocity.X += force.X;
621 // _target_velocity.Y += force.Y;
622 //_target_velocity.Z += force.Z;
623 }
624 else
625 {
626 m_pidControllerActive = true;
627 _target_velocity.X += force.X;
628 _target_velocity.Y += force.Y;
629 _target_velocity.Z += force.Z;
630 }
620 //m_lastUpdateSent = false; 631 //m_lastUpdateSent = false;
621 } 632 }
622 633
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 4e1696d..cf9dc5d 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -1884,7 +1884,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1884 _acceleration = accel; 1884 _acceleration = accel;
1885 } 1885 }
1886 1886
1887 public override void AddForce(PhysicsVector force) 1887 public override void AddForce(PhysicsVector force, bool pushforce)
1888 { 1888 {
1889 m_forcelist.Add(force); 1889 m_forcelist.Add(force);
1890 m_taintforce = true; 1890 m_taintforce = true;
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
index 836e620..96e67d1 100644
--- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
+++ b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
@@ -513,7 +513,7 @@ namespace OpenSim.Region.Physics.POSPlugin
513 _acceleration = accel; 513 _acceleration = accel;
514 } 514 }
515 515
516 public override void AddForce(PhysicsVector force) 516 public override void AddForce(PhysicsVector force, bool pushforce)
517 { 517 {
518 } 518 }
519 519
@@ -686,7 +686,7 @@ namespace OpenSim.Region.Physics.POSPlugin
686 _acceleration = accel; 686 _acceleration = accel;
687 } 687 }
688 688
689 public override void AddForce(PhysicsVector force) 689 public override void AddForce(PhysicsVector force, bool pushforce)
690 { 690 {
691 } 691 }
692 692
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
index 49fe1b5..712d10e 100644
--- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
+++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
@@ -378,7 +378,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin
378 _acceleration = accel; 378 _acceleration = accel;
379 } 379 }
380 380
381 public override void AddForce(PhysicsVector force) 381 public override void AddForce(PhysicsVector force, bool pushforce)
382 { 382 {
383 } 383 }
384 384
@@ -625,7 +625,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin
625 _acceleration = accel; 625 _acceleration = accel;
626 } 626 }
627 627
628 public override void AddForce(PhysicsVector force) 628 public override void AddForce(PhysicsVector force, bool pushforce)
629 { 629 {
630 } 630 }
631 631