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/BSCharacter.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/BSCharacter.cs')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs index 939d38a..aadb583 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs | |||
@@ -328,6 +328,10 @@ public sealed class BSCharacter : BSPhysObject | |||
328 | public override bool Selected { | 328 | public override bool Selected { |
329 | set { _selected = value; } | 329 | set { _selected = value; } |
330 | } | 330 | } |
331 | public override bool IsSelected | ||
332 | { | ||
333 | get { return _selected; } | ||
334 | } | ||
331 | public override void CrossingFailure() { return; } | 335 | public override void CrossingFailure() { return; } |
332 | public override void link(PhysicsActor obj) { return; } | 336 | public override void link(PhysicsActor obj) { return; } |
333 | public override void delink() { return; } | 337 | public override void delink() { return; } |