aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager
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/Manager
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/Manager')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 3c094ad..fd02057 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -185,6 +185,7 @@ namespace OpenSim.Region.Physics.Manager
185 public abstract PhysicsVector GeometricCenter { get; } 185 public abstract PhysicsVector GeometricCenter { get; }
186 public abstract PhysicsVector CenterOfMass { get; } 186 public abstract PhysicsVector CenterOfMass { get; }
187 public abstract PhysicsVector Velocity { get; set; } 187 public abstract PhysicsVector Velocity { get; set; }
188 public abstract PhysicsVector Torque { get; set; }
188 public abstract float CollisionScore { get; set;} 189 public abstract float CollisionScore { get; set;}
189 public abstract PhysicsVector Acceleration { get; } 190 public abstract PhysicsVector Acceleration { get; }
190 public abstract Quaternion Orientation { get; set; } 191 public abstract Quaternion Orientation { get; set; }
@@ -204,6 +205,7 @@ namespace OpenSim.Region.Physics.Manager
204 public abstract bool PIDActive { set;} 205 public abstract bool PIDActive { set;}
205 public abstract float PIDTau { set; } 206 public abstract float PIDTau { set; }
206 public abstract void AddForce(PhysicsVector force, bool pushforce); 207 public abstract void AddForce(PhysicsVector force, bool pushforce);
208 public abstract void AddAngularForce(PhysicsVector force, bool pushforce);
207 public abstract void SetMomentum(PhysicsVector momentum); 209 public abstract void SetMomentum(PhysicsVector momentum);
208 public abstract void SubscribeEvents(int ms); 210 public abstract void SubscribeEvents(int ms);
209 public abstract void UnSubscribeEvents(); 211 public abstract void UnSubscribeEvents();
@@ -331,6 +333,12 @@ namespace OpenSim.Region.Physics.Manager
331 set { return; } 333 set { return; }
332 } 334 }
333 335
336 public override PhysicsVector Torque
337 {
338 get { return PhysicsVector.Zero; }
339 set { return; }
340 }
341
334 public override float CollisionScore 342 public override float CollisionScore
335 { 343 {
336 get { return 0f; } 344 get { return 0f; }
@@ -404,6 +412,11 @@ namespace OpenSim.Region.Physics.Manager
404 { 412 {
405 } 413 }
406 414
415 public override void AddAngularForce(PhysicsVector force, bool pushforce)
416 {
417
418 }
419
407 public override PhysicsVector RotationalVelocity 420 public override PhysicsVector RotationalVelocity
408 { 421 {
409 get { return PhysicsVector.Zero; } 422 get { return PhysicsVector.Zero; }