diff options
author | Robert Adams | 2012-09-07 15:46:14 -0700 |
---|---|---|
committer | Robert Adams | 2012-09-07 16:05:28 -0700 |
commit | 126eae71009001c5455e4896cf12317422bbac51 (patch) | |
tree | 7ceb0c01d5fb352707de447227a308bfe8715c39 /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |
parent | BulletSim: Add some comments (gasp) and log messages. (diff) | |
download | opensim-SC-126eae71009001c5455e4896cf12317422bbac51.zip opensim-SC-126eae71009001c5455e4896cf12317422bbac51.tar.gz opensim-SC-126eae71009001c5455e4896cf12317422bbac51.tar.bz2 opensim-SC-126eae71009001c5455e4896cf12317422bbac51.tar.xz |
BulletSim: Add Bullet body and shape to BSPhysObject and rename
'Body' to 'BSBody' for disambiguation when reading code.
Complete the API2 interface so nearly all methods on bullet
classes are available to the managed code. The efficient
single call simulation step is kept in place while all
other creation/destruction/parameterization can be done
in the managed code.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs index ef463ca..e411fcb 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |||
@@ -48,7 +48,11 @@ public abstract class BSPhysObject : PhysicsActor | |||
48 | // Return the object mass without calculating it or side effects | 48 | // Return the object mass without calculating it or side effects |
49 | public abstract float MassRaw { get; } | 49 | public abstract float MassRaw { get; } |
50 | 50 | ||
51 | public abstract BulletBody Body { get; set; } | 51 | // Reference to the physical body (btCollisionObject) of this object |
52 | public abstract BulletBody BSBody { get; set; } | ||
53 | // Reference to the physical shape (btCollisionShape) of this object | ||
54 | public abstract BulletShape BSShape { get; set; } | ||
55 | |||
52 | public abstract void ZeroMotion(); | 56 | public abstract void ZeroMotion(); |
53 | 57 | ||
54 | public virtual void StepVehicle(float timeStep) { } | 58 | public virtual void StepVehicle(float timeStep) { } |