diff options
author | Robert Adams | 2013-01-09 22:45:01 -0800 |
---|---|---|
committer | Robert Adams | 2013-01-11 16:47:20 -0800 |
commit | 93adc4cb6689b156db4db315d44b5ba0ddcd65ac (patch) | |
tree | 0068e2e8bb2721f6f33e622ebb6f7535eb843518 /OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |
parent | Fix exception reporting in SceneObjectPart so it logs what the exception is r... (diff) | |
download | opensim-SC_OLD-93adc4cb6689b156db4db315d44b5ba0ddcd65ac.zip opensim-SC_OLD-93adc4cb6689b156db4db315d44b5ba0ddcd65ac.tar.gz opensim-SC_OLD-93adc4cb6689b156db4db315d44b5ba0ddcd65ac.tar.bz2 opensim-SC_OLD-93adc4cb6689b156db4db315d44b5ba0ddcd65ac.tar.xz |
BulletSim: Add IsSelected attribute to physical objects. Have vehicles check to see if physical before trying to step. Replace vehicle gravity application. Previously relying on Bullet to apply gravity but since vehicles over-ride the velocity calculation, gravity never had a chance to accelerate the body down. Added AddForceImpulse as well as AddForce for those who need to apply immediate velocity updates. Use the impulse to apply the linear motion.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs index e8575f6..2c84293 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs | |||
@@ -135,6 +135,7 @@ public abstract class BSPhysObject : PhysicsActor | |||
135 | public virtual OMV.Vector3 Scale { get; set; } | 135 | public virtual OMV.Vector3 Scale { get; set; } |
136 | public abstract bool IsSolid { get; } | 136 | public abstract bool IsSolid { get; } |
137 | public abstract bool IsStatic { get; } | 137 | public abstract bool IsStatic { get; } |
138 | public abstract bool IsSelected { get; } | ||
138 | 139 | ||
139 | // Materialness | 140 | // Materialness |
140 | public MaterialAttributes.Material Material { get; private set; } | 141 | public MaterialAttributes.Material Material { get; private set; } |