aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs
index 732c084..8c36c31 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs
@@ -78,23 +78,11 @@ public sealed class BSLinksetConstraints : BSLinkset
78 } 78 }
79 79
80 // Called at taint-time!! 80 // Called at taint-time!!
81 public override void UpdateProperties(BSPhysObject updated) 81 public override void UpdateProperties(BSPhysObject updated, bool inTaintTime)
82 { 82 {
83 // Nothing to do for constraints on property updates 83 // Nothing to do for constraints on property updates
84 } 84 }
85 85
86 // The children of the linkset are moved around by the constraints.
87 // Just grab the current values of wherever it is right now.
88 public override OMV.Vector3 Position(BSPhysObject member)
89 {
90 return BulletSimAPI.GetPosition2(member.PhysBody.ptr);
91 }
92
93 public override OMV.Quaternion Orientation(BSPhysObject member)
94 {
95 return BulletSimAPI.GetOrientation2(member.PhysBody.ptr);
96 }
97
98 // Routine called when rebuilding the body of some member of the linkset. 86 // Routine called when rebuilding the body of some member of the linkset.
99 // Destroy all the constraints have have been made to root and set 87 // Destroy all the constraints have have been made to root and set
100 // up to rebuild the constraints before the next simulation step. 88 // up to rebuild the constraints before the next simulation step.