aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/PhysXPlugin
diff options
context:
space:
mode:
authorTeravus Ovares2008-12-14 14:30:28 +0000
committerTeravus Ovares2008-12-14 14:30:28 +0000
commit8ad6f575ebc23f0c7b282b9ec2543bce26287e54 (patch)
treeab424abb19a070cce386a5013b3d5452dbdf9bc2 /OpenSim/Region/Physics/PhysXPlugin
parentAdded ATTACH_HUD_* constants fixes Mantis #2823 (diff)
downloadopensim-SC_OLD-8ad6f575ebc23f0c7b282b9ec2543bce26287e54.zip
opensim-SC_OLD-8ad6f575ebc23f0c7b282b9ec2543bce26287e54.tar.gz
opensim-SC_OLD-8ad6f575ebc23f0c7b282b9ec2543bce26287e54.tar.bz2
opensim-SC_OLD-8ad6f575ebc23f0c7b282b9ec2543bce26287e54.tar.xz
* Implements the torque/Rotational Impulse methods in the PhysicsAPI and the ODEPlugin and pipes them to their respective LSL method.
* NBody will need to be updated, this is an API change. Torque property and AddAngularForce
Diffstat (limited to 'OpenSim/Region/Physics/PhysXPlugin')
-rw-r--r--OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
index 940c9bc..6502827 100644
--- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
+++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
@@ -417,6 +417,14 @@ namespace OpenSim.Region.Physics.PhysXPlugin
417 public override void AddForce(PhysicsVector force, bool pushforce) 417 public override void AddForce(PhysicsVector force, bool pushforce)
418 { 418 {
419 } 419 }
420 public override PhysicsVector Torque
421 {
422 get { return PhysicsVector.Zero; }
423 set { return; }
424 }
425 public override void AddAngularForce(PhysicsVector force, bool pushforce)
426 {
427 }
420 428
421 public override void link(PhysicsActor obj) 429 public override void link(PhysicsActor obj)
422 { 430 {
@@ -625,6 +633,12 @@ namespace OpenSim.Region.Physics.PhysXPlugin
625 set { _velocity = value; } 633 set { _velocity = value; }
626 } 634 }
627 635
636 public override PhysicsVector Torque
637 {
638 get { return PhysicsVector.Zero; }
639 set { return; }
640 }
641
628 public override float CollisionScore 642 public override float CollisionScore
629 { 643 {
630 get { return 0f; } 644 get { return 0f; }
@@ -666,6 +680,10 @@ namespace OpenSim.Region.Physics.PhysXPlugin
666 { 680 {
667 } 681 }
668 682
683 public override void AddAngularForce(PhysicsVector force, bool pushforce)
684 {
685 }
686
669 public override void SetMomentum(PhysicsVector momentum) 687 public override void SetMomentum(PhysicsVector momentum)
670 { 688 {
671 } 689 }