diff options
author | Robert Adams | 2013-01-31 10:26:53 -0800 |
---|---|---|
committer | Robert Adams | 2013-01-31 15:56:02 -0800 |
commit | ed71c939fc22059b03572fe6380fcc754c89a284 (patch) | |
tree | b10e0be30b391e0e90c855f4cf671fa42d4faf16 /OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs | |
parent | BulletSim: clean up TargetVelocity implementation by using the default defn i... (diff) | |
download | opensim-SC_OLD-ed71c939fc22059b03572fe6380fcc754c89a284.zip opensim-SC_OLD-ed71c939fc22059b03572fe6380fcc754c89a284.tar.gz opensim-SC_OLD-ed71c939fc22059b03572fe6380fcc754c89a284.tar.bz2 opensim-SC_OLD-ed71c939fc22059b03572fe6380fcc754c89a284.tar.xz |
BulletSim: make sure vehicle physical properties are set when going
physical by delaying setting until pre-step time. Change vehicle.Refresh()
to schedule the pre-step setting.
Comments and updating of TODO list.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs index b5dd131..0b81122 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs | |||
@@ -1597,9 +1597,9 @@ public sealed class BSPrim : BSPhysObject | |||
1597 | public void CreateGeomAndObject(bool forceRebuild) | 1597 | public void CreateGeomAndObject(bool forceRebuild) |
1598 | { | 1598 | { |
1599 | // Create the correct physical representation for this type of object. | 1599 | // Create the correct physical representation for this type of object. |
1600 | // Updates PhysBody and PhysShape with the new information. | 1600 | // Updates base.PhysBody and base.PhysShape with the new information. |
1601 | // Ignore 'forceRebuild'. This routine makes the right choices and changes of necessary. | 1601 | // Ignore 'forceRebuild'. This routine makes the right choices and changes of necessary. |
1602 | PhysicsScene.Shapes.GetBodyAndShape(false, PhysicsScene.World, this, null, delegate(BulletBody dBody) | 1602 | PhysicsScene.Shapes.GetBodyAndShape(false /*forceRebuild */, PhysicsScene.World, this, null, delegate(BulletBody dBody) |
1603 | { | 1603 | { |
1604 | // Called if the current prim body is about to be destroyed. | 1604 | // Called if the current prim body is about to be destroyed. |
1605 | // Remove all the physical dependencies on the old body. | 1605 | // Remove all the physical dependencies on the old body. |