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/BasicPhysicsPlugin | |
parent | Thank you very much, CharlieO for: (diff) | |
download | opensim-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/BasicPhysicsPlugin')
-rw-r--r-- | OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs index 545f461..5ac651f 100644 --- a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs +++ b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs | |||
@@ -258,7 +258,7 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin | |||
258 | 258 | ||
259 | public override PhysicsVector Size | 259 | public override PhysicsVector Size |
260 | { | 260 | { |
261 | get { return new PhysicsVector(0, 0, 0); } | 261 | get { return PhysicsVector.Zero; } |
262 | set { } | 262 | set { } |
263 | } | 263 | } |
264 | 264 | ||
@@ -269,7 +269,22 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin | |||
269 | return; | 269 | return; |
270 | } | 270 | } |
271 | } | 271 | } |
272 | 272 | public override float Mass | |
273 | { | ||
274 | get { return 0f; } | ||
275 | } | ||
276 | public override PhysicsVector Force | ||
277 | { | ||
278 | get { return PhysicsVector.Zero; } | ||
279 | } | ||
280 | public override PhysicsVector CenterOfMass | ||
281 | { | ||
282 | get { return PhysicsVector.Zero; } | ||
283 | } | ||
284 | public override PhysicsVector GeometricCenter | ||
285 | { | ||
286 | get { return PhysicsVector.Zero; } | ||
287 | } | ||
273 | public override PhysicsVector Velocity | 288 | public override PhysicsVector Velocity |
274 | { | 289 | { |
275 | get { return _velocity; } | 290 | get { return _velocity; } |