diff options
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs index 1e8fe52..84a7fac 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs | |||
@@ -282,10 +282,10 @@ public class BSLinkset | |||
282 | { | 282 | { |
283 | // If this is a multiple object linkset, set everybody's center of mass to the set's center of mass | 283 | // If this is a multiple object linkset, set everybody's center of mass to the set's center of mass |
284 | OMV.Vector3 centerOfMass = ComputeLinksetCenterOfMass(); | 284 | OMV.Vector3 centerOfMass = ComputeLinksetCenterOfMass(); |
285 | BulletSimAPI.SetCenterOfMassByPosRot2(LinksetRoot.BSBody.Ptr, centerOfMass, OMV.Quaternion.Identity); | 285 | BulletSimAPI.SetCenterOfMassByPosRot2(LinksetRoot.BSBody.ptr, centerOfMass, OMV.Quaternion.Identity); |
286 | foreach (BSPhysObject child in m_children) | 286 | foreach (BSPhysObject child in m_children) |
287 | { | 287 | { |
288 | BulletSimAPI.SetCenterOfMassByPosRot2(child.BSBody.Ptr, centerOfMass, OMV.Quaternion.Identity); | 288 | BulletSimAPI.SetCenterOfMassByPosRot2(child.BSBody.ptr, centerOfMass, OMV.Quaternion.Identity); |
289 | } | 289 | } |
290 | /* | 290 | /* |
291 | // The root prim takes on the weight of the whole linkset | 291 | // The root prim takes on the weight of the whole linkset |
@@ -442,7 +442,7 @@ public class BSLinkset | |||
442 | PhysicsScene.Constraints.RemoveAndDestroyConstraint(rootPrim.BSBody, childPrim.BSBody); | 442 | PhysicsScene.Constraints.RemoveAndDestroyConstraint(rootPrim.BSBody, childPrim.BSBody); |
443 | 443 | ||
444 | // Make the child refresh its location | 444 | // Make the child refresh its location |
445 | BulletSimAPI.PushUpdate2(childPrim.BSBody.Ptr); | 445 | BulletSimAPI.PushUpdate2(childPrim.BSBody.ptr); |
446 | } | 446 | } |
447 | 447 | ||
448 | // Remove linkage between myself and any possible children I might have | 448 | // Remove linkage between myself and any possible children I might have |