diff options
author | Justin Clark-Casey (justincc) | 2013-01-01 23:27:10 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-01 23:27:10 +0000 |
commit | e8a3cc701910130e1aafb2b757737517c1cd1627 (patch) | |
tree | f1fd4ed9cf2b8e80ea43d2a8028837874f1b193c /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |
parent | Clarify that AllowLightShareFunctions setting is false, which is the default ... (diff) | |
parent | BulletSim: remove unused unmanaged memory reference functions from BSAPITempl... (diff) | |
download | opensim-SC_OLD-e8a3cc701910130e1aafb2b757737517c1cd1627.zip opensim-SC_OLD-e8a3cc701910130e1aafb2b757737517c1cd1627.tar.gz opensim-SC_OLD-e8a3cc701910130e1aafb2b757737517c1cd1627.tar.bz2 opensim-SC_OLD-e8a3cc701910130e1aafb2b757737517c1cd1627.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs index 73b5764..e7cb3e0 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |||
@@ -67,6 +67,11 @@ public abstract class BSPhysObject : PhysicsActor | |||
67 | PhysObjectName = name; | 67 | PhysObjectName = name; |
68 | TypeName = typeName; | 68 | TypeName = typeName; |
69 | 69 | ||
70 | // We don't have any physical representation yet. | ||
71 | PhysBody = new BulletBody(localID); | ||
72 | PhysShape = new BulletShape(); | ||
73 | |||
74 | // A linkset of just me | ||
70 | Linkset = BSLinkset.Factory(PhysicsScene, this); | 75 | Linkset = BSLinkset.Factory(PhysicsScene, this); |
71 | LastAssetBuildFailed = false; | 76 | LastAssetBuildFailed = false; |
72 | 77 | ||
@@ -303,7 +308,7 @@ public abstract class BSPhysObject : PhysicsActor | |||
303 | PhysicsScene.TaintedObject(TypeName+".SubscribeEvents", delegate() | 308 | PhysicsScene.TaintedObject(TypeName+".SubscribeEvents", delegate() |
304 | { | 309 | { |
305 | if (PhysBody.HasPhysicalBody) | 310 | if (PhysBody.HasPhysicalBody) |
306 | CurrentCollisionFlags = BulletSimAPI.AddToCollisionFlags2(PhysBody.ptr, CollisionFlags.BS_SUBSCRIBE_COLLISION_EVENTS); | 311 | CurrentCollisionFlags = PhysicsScene.PE.AddToCollisionFlags(PhysBody, CollisionFlags.BS_SUBSCRIBE_COLLISION_EVENTS); |
307 | }); | 312 | }); |
308 | } | 313 | } |
309 | else | 314 | else |
@@ -319,7 +324,7 @@ public abstract class BSPhysObject : PhysicsActor | |||
319 | { | 324 | { |
320 | // Make sure there is a body there because sometimes destruction happens in an un-ideal order. | 325 | // Make sure there is a body there because sometimes destruction happens in an un-ideal order. |
321 | if (PhysBody.HasPhysicalBody) | 326 | if (PhysBody.HasPhysicalBody) |
322 | CurrentCollisionFlags = BulletSimAPI.RemoveFromCollisionFlags2(PhysBody.ptr, CollisionFlags.BS_SUBSCRIBE_COLLISION_EVENTS); | 327 | CurrentCollisionFlags = PhysicsScene.PE.RemoveFromCollisionFlags(PhysBody, CollisionFlags.BS_SUBSCRIBE_COLLISION_EVENTS); |
323 | }); | 328 | }); |
324 | } | 329 | } |
325 | // Return 'true' if the simulator wants collision events | 330 | // Return 'true' if the simulator wants collision events |