diff options
author | Robert Adams | 2012-12-21 17:27:53 -0800 |
---|---|---|
committer | Robert Adams | 2012-12-21 17:27:53 -0800 |
commit | 3d659fe97d79c04983dcfa8c78e9dde1623f54f2 (patch) | |
tree | 6333754a97f616a1fdf1de5b91f0358c21a16c83 /OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | |
parent | BulletSim: repair vehicle problems introduced in previous 'improvements'. Fix... (diff) | |
download | opensim-SC-3d659fe97d79c04983dcfa8c78e9dde1623f54f2.zip opensim-SC-3d659fe97d79c04983dcfa8c78e9dde1623f54f2.tar.gz opensim-SC-3d659fe97d79c04983dcfa8c78e9dde1623f54f2.tar.bz2 opensim-SC-3d659fe97d79c04983dcfa8c78e9dde1623f54f2.tar.xz |
BulletSim: add BSPhysObject code to manage registrations of preStep events. Use same to implement setForce and setTorque so the values are restored at the beginning of each step (since Bullet zeros forces applied last step). Simplify implementation of AddForce and AddTorque by relying on the addition of forces in Bullet.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs index 7bde1c1..b392d75 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | |||
@@ -134,6 +134,8 @@ public sealed class BSCharacter : BSPhysObject | |||
134 | // called when this character is being destroyed and the resources should be released | 134 | // called when this character is being destroyed and the resources should be released |
135 | public override void Destroy() | 135 | public override void Destroy() |
136 | { | 136 | { |
137 | base.Destroy(); | ||
138 | |||
137 | DetailLog("{0},BSCharacter.Destroy", LocalID); | 139 | DetailLog("{0},BSCharacter.Destroy", LocalID); |
138 | PhysicsScene.TaintedObject("BSCharacter.destroy", delegate() | 140 | PhysicsScene.TaintedObject("BSCharacter.destroy", delegate() |
139 | { | 141 | { |