aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/PhysXPlugin
diff options
context:
space:
mode:
authorTeravus Ovares2007-12-19 22:42:06 +0000
committerTeravus Ovares2007-12-19 22:42:06 +0000
commit27e028752600921deac57e281f1df6d8c7310c5d (patch)
treef94a99a6e7ad4d4325d336561f0e6365ec44f6d3 /OpenSim/Region/Physics/PhysXPlugin
parentThank you very much, CharlieO for: (diff)
downloadopensim-SC-27e028752600921deac57e281f1df6d8c7310c5d.zip
opensim-SC-27e028752600921deac57e281f1df6d8c7310c5d.tar.gz
opensim-SC-27e028752600921deac57e281f1df6d8c7310c5d.tar.bz2
opensim-SC-27e028752600921deac57e281f1df6d8c7310c5d.tar.xz
* Re-did the mass calculations in ODE for Prim
* Exposed the mass as a PhysicsActor read only property (so scripts can get at it - hint hint -) * Hollow and Path Cuts affect the prim mass (all Hollow Types are supported in this calculation (sphere,square,triangle)) * Prim no longer sink into the ground.
Diffstat (limited to 'OpenSim/Region/Physics/PhysXPlugin')
-rw-r--r--OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs42
1 files changed, 39 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
index bc28626..8525e75 100644
--- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
+++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs
@@ -270,10 +270,25 @@ namespace OpenSim.Region.Physics.PhysXPlugin
270 270
271 public override PhysicsVector Size 271 public override PhysicsVector Size
272 { 272 {
273 get { return new PhysicsVector(0, 0, 0); } 273 get { return PhysicsVector.Zero; }
274 set { } 274 set { }
275 } 275 }
276 276 public override float Mass
277 {
278 get { return 0f; }
279 }
280 public override PhysicsVector Force
281 {
282 get { return PhysicsVector.Zero; }
283 }
284 public override PhysicsVector CenterOfMass
285 {
286 get { return PhysicsVector.Zero; }
287 }
288 public override PhysicsVector GeometricCenter
289 {
290 get { return PhysicsVector.Zero; }
291 }
277 public override PhysicsVector Velocity 292 public override PhysicsVector Velocity
278 { 293 {
279 get { return _velocity; } 294 get { return _velocity; }
@@ -507,8 +522,29 @@ namespace OpenSim.Region.Physics.PhysXPlugin
507 522
508 public override PhysicsVector Size 523 public override PhysicsVector Size
509 { 524 {
510 get { return new PhysicsVector(0, 0, 0); } 525 get { return PhysicsVector.Zero; }
511 set { } 526 set { }
512 } 527 }
528
529 public override float Mass
530 {
531 get { return 0f; }
532 }
533
534 public override PhysicsVector Force
535 {
536 get { return PhysicsVector.Zero; }
537 }
538
539 public override PhysicsVector CenterOfMass
540 {
541 get { return PhysicsVector.Zero; }
542 }
543
544 public override PhysicsVector GeometricCenter
545 {
546 get { return PhysicsVector.Zero; }
547 }
548
513 } 549 }
514} 550}