diff options
author | Robert Adams | 2013-06-10 06:40:07 -0700 |
---|---|---|
committer | Robert Adams | 2013-07-06 08:25:15 -0700 |
commit | 97698ae3119e01ecd2c98f7a17ad37204b9bfd9c (patch) | |
tree | e9fd36f0de282732d55e07ad7a139eb15a007abf /OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs | |
parent | BulletSim: comments and non-functional changes working toward the center-of-g... (diff) | |
download | opensim-SC-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.zip opensim-SC-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.tar.gz opensim-SC-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.tar.bz2 opensim-SC-97698ae3119e01ecd2c98f7a17ad37204b9bfd9c.tar.xz |
BulletSim: More tweaking on center-of-mass. Almost there. Changes have no effect if LinksetOffsetCenterOfMass=false (the default).
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSPrimLinkable.cs | 10 |
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 | { |