aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs
diff options
context:
space:
mode:
authorRobert Adams2013-06-10 06:40:07 -0700
committerRobert Adams2013-07-06 08:25:15 -0700
commit97698ae3119e01ecd2c98f7a17ad37204b9bfd9c (patch)
treee9fd36f0de282732d55e07ad7a139eb15a007abf /OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs
parentBulletSim: comments and non-functional changes working toward the center-of-g... (diff)
downloadopensim-SC_OLD-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.zip
opensim-SC_OLD-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.tar.gz
opensim-SC_OLD-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.tar.bz2
opensim-SC_OLD-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.tar.xz
BulletSim: More tweaking on center-of-mass. Almost there. Changes have no effect if LinksetOffsetCenterOfMass=false (the default).
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs
index 6d7de35..7058646 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs
@@ -134,6 +134,16 @@ public class BSPrimLinkable : BSPrimDisplaced
134 get { return Linkset.LinksetMass; } 134 get { return Linkset.LinksetMass; }
135 } 135 }
136 136
137 public override OMV.Vector3 CenterOfMass
138 {
139 get { return Linkset.CenterOfMass; }
140 }
141
142 public override OMV.Vector3 GeometricCenter
143 {
144 get { return Linkset.GeometricCenter; }
145 }
146
137 // Refresh the linkset structure and parameters when the prim's physical parameters are changed. 147 // Refresh the linkset structure and parameters when the prim's physical parameters are changed.
138 public override void UpdatePhysicalParameters() 148 public override void UpdatePhysicalParameters()
139 { 149 {