aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/POSPlugin
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/POSPlugin
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/POSPlugin')
-rw-r--r--OpenSim/Region/Physics/POSPlugin/POSCharacter.cs10
-rw-r--r--OpenSim/Region/Physics/POSPlugin/POSPrim.cs10
2 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs b/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs
index ab66d4c..4230a57 100644
--- a/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs
+++ b/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs
@@ -211,6 +211,12 @@ namespace OpenSim.Region.Physics.POSPlugin
211 set { _target_velocity = value; } 211 set { _target_velocity = value; }
212 } 212 }
213 213
214 public override PhysicsVector Torque
215 {
216 get { return PhysicsVector.Zero; }
217 set { return; }
218 }
219
214 public override float CollisionScore 220 public override float CollisionScore
215 { 221 {
216 get { return 0f; } 222 get { return 0f; }
@@ -255,6 +261,10 @@ namespace OpenSim.Region.Physics.POSPlugin
255 { 261 {
256 } 262 }
257 263
264 public override void AddAngularForce(PhysicsVector force, bool pushforce)
265 {
266 }
267
258 public override void SetMomentum(PhysicsVector momentum) 268 public override void SetMomentum(PhysicsVector momentum)
259 { 269 {
260 } 270 }
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPrim.cs b/OpenSim/Region/Physics/POSPlugin/POSPrim.cs
index fdd095f..bf96c35 100644
--- a/OpenSim/Region/Physics/POSPlugin/POSPrim.cs
+++ b/OpenSim/Region/Physics/POSPlugin/POSPrim.cs
@@ -211,6 +211,16 @@ namespace OpenSim.Region.Physics.POSPlugin
211 { 211 {
212 } 212 }
213 213
214 public override void AddAngularForce(PhysicsVector force, bool pushforce)
215 {
216 }
217
218 public override PhysicsVector Torque
219 {
220 get { return PhysicsVector.Zero; }
221 set { return; }
222 }
223
214 public override void SetMomentum(PhysicsVector momentum) 224 public override void SetMomentum(PhysicsVector momentum)
215 { 225 {
216 } 226 }