diff options
author | Teravus Ovares | 2007-12-19 22:42:06 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-19 22:42:06 +0000 |
commit | 27e028752600921deac57e281f1df6d8c7310c5d (patch) | |
tree | f94a99a6e7ad4d4325d336561f0e6365ec44f6d3 /OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | |
parent | Thank you very much, CharlieO for: (diff) | |
download | opensim-SC_OLD-27e028752600921deac57e281f1df6d8c7310c5d.zip opensim-SC_OLD-27e028752600921deac57e281f1df6d8c7310c5d.tar.gz opensim-SC_OLD-27e028752600921deac57e281f1df6d8c7310c5d.tar.bz2 opensim-SC_OLD-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 '')
-rw-r--r-- | OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs index a565598..26310f9 100644 --- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs +++ b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | |||
@@ -383,6 +383,22 @@ namespace OpenSim.Region.Physics.POSPlugin | |||
383 | get { return new PhysicsVector(0.5f, 0.5f, 1.0f); } | 383 | get { return new PhysicsVector(0.5f, 0.5f, 1.0f); } |
384 | set { } | 384 | set { } |
385 | } | 385 | } |
386 | public override float Mass | ||
387 | { | ||
388 | get { return 0f; } | ||
389 | } | ||
390 | public override PhysicsVector Force | ||
391 | { | ||
392 | get { return PhysicsVector.Zero; } | ||
393 | } | ||
394 | public override PhysicsVector CenterOfMass | ||
395 | { | ||
396 | get { return PhysicsVector.Zero; } | ||
397 | } | ||
398 | public override PhysicsVector GeometricCenter | ||
399 | { | ||
400 | get { return PhysicsVector.Zero; } | ||
401 | } | ||
386 | 402 | ||
387 | public override PrimitiveBaseShape Shape | 403 | public override PrimitiveBaseShape Shape |
388 | { | 404 | { |
@@ -492,6 +508,26 @@ namespace OpenSim.Region.Physics.POSPlugin | |||
492 | set { _size = value; } | 508 | set { _size = value; } |
493 | } | 509 | } |
494 | 510 | ||
511 | public override float Mass | ||
512 | { | ||
513 | get { return 0f; } | ||
514 | } | ||
515 | |||
516 | public override PhysicsVector Force | ||
517 | { | ||
518 | get { return PhysicsVector.Zero; } | ||
519 | } | ||
520 | |||
521 | public override PhysicsVector CenterOfMass | ||
522 | { | ||
523 | get { return PhysicsVector.Zero; } | ||
524 | } | ||
525 | |||
526 | public override PhysicsVector GeometricCenter | ||
527 | { | ||
528 | get { return PhysicsVector.Zero; } | ||
529 | } | ||
530 | |||
495 | public override PrimitiveBaseShape Shape | 531 | public override PrimitiveBaseShape Shape |
496 | { | 532 | { |
497 | set | 533 | set |