aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
diff options
context:
space:
mode:
authorRobert Adams2012-10-29 11:30:47 -0700
committerRobert Adams2012-11-03 21:13:35 -0700
commite20bad12cc0584c6368e46e0f326e6b616133e8f (patch)
tree9eb7db09bdb82036ebfe3623f27dc97868de4c02 /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
parentBulletSim: rename constraint classes so they show up together alphabetically. (diff)
downloadopensim-SC-e20bad12cc0584c6368e46e0f326e6b616133e8f.zip
opensim-SC-e20bad12cc0584c6368e46e0f326e6b616133e8f.tar.gz
opensim-SC-e20bad12cc0584c6368e46e0f326e6b616133e8f.tar.bz2
opensim-SC-e20bad12cc0584c6368e46e0f326e6b616133e8f.tar.xz
BulletSim: centralize mass/inertia computation with UpdatePhysicalMassProperties() function. Didn't add setMassRaw because assignment with side effect is dirty.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
index 538f905..be8d64b 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
@@ -64,6 +64,8 @@ public abstract class BSPhysObject : PhysicsActor
64 64
65 // Return the object mass without calculating it or having side effects 65 // Return the object mass without calculating it or having side effects
66 public abstract float MassRaw { get; } 66 public abstract float MassRaw { get; }
67 // Set the raw mass but also update physical mass properties (inertia, ...)
68 public abstract void UpdatePhysicalMassProperties(float mass);
67 69
68 // Reference to the physical body (btCollisionObject) of this object 70 // Reference to the physical body (btCollisionObject) of this object
69 public BulletBody BSBody; 71 public BulletBody BSBody;