aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-12 21:45:49 +0000
committerTeravus Ovares2007-11-12 21:45:49 +0000
commit5952441fcc886902f7b2f72eb839ae49d2c85012 (patch)
treeff7ea06cbdaa36e14b1d14da79d5535cb0dcba14 /OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
parentfix compile issue on mono (diff)
downloadopensim-SC_OLD-5952441fcc886902f7b2f72eb839ae49d2c85012.zip
opensim-SC_OLD-5952441fcc886902f7b2f72eb839ae49d2c85012.tar.gz
opensim-SC_OLD-5952441fcc886902f7b2f72eb839ae49d2c85012.tar.bz2
opensim-SC_OLD-5952441fcc886902f7b2f72eb839ae49d2c85012.tar.xz
* Added a lot of Glue to help with reporting proper collisions.
* ODE - Fixed the iscolliding property to report a static true when colliding. * Added reporting of collisions to call UpdateMovementAnimations * Added Jump - air animation (with arms outstretched). * Added Fall Animations * ODE - Added a small amount of X, Y motion control while jumping or Falling * ODE - Avatar movement animations are still a bit odd sometimes, and had to get this up there.
Diffstat (limited to 'OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs')
-rw-r--r--OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs29
1 files changed, 27 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
index 2db7a54..b51f024 100644
--- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
+++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs
@@ -705,6 +705,7 @@ namespace OpenSim.Region.Physics.BulletXPlugin
705 protected AxiomQuaternion _orientation; 705 protected AxiomQuaternion _orientation;
706 protected PhysicsVector m_rotationalVelocity = PhysicsVector.Zero; 706 protected PhysicsVector m_rotationalVelocity = PhysicsVector.Zero;
707 protected RigidBody rigidBody; 707 protected RigidBody rigidBody;
708 protected int m_PhysicsActorType;
708 private Boolean iscolliding = false; 709 private Boolean iscolliding = false;
709 internal string _name; 710 internal string _name;
710 711
@@ -784,6 +785,12 @@ namespace OpenSim.Region.Physics.BulletXPlugin
784 { 785 {
785 get { return 0; } 786 get { return 0; }
786 } 787 }
788 public override int PhysicsActorType
789 {
790 get { return (int) m_PhysicsActorType; }
791 set { m_PhysicsActorType = value; }
792 }
793
787 public RigidBody RigidBody 794 public RigidBody RigidBody
788 { 795 {
789 get { return rigidBody; } 796 get { return rigidBody; }
@@ -814,6 +821,16 @@ namespace OpenSim.Region.Physics.BulletXPlugin
814 get { return iscolliding; } 821 get { return iscolliding; }
815 set { iscolliding = value; } 822 set { iscolliding = value; }
816 } 823 }
824 public override bool CollidingGround
825 {
826 get { return false; }
827 set { return; }
828 }
829 public override bool CollidingObj
830 {
831 get { return false; }
832 set { return; }
833 }
817 public virtual void SetAcceleration(PhysicsVector accel) 834 public virtual void SetAcceleration(PhysicsVector accel)
818 { 835 {
819 lock (BulletXScene.BulletXLock) 836 lock (BulletXScene.BulletXLock)
@@ -956,7 +973,11 @@ namespace OpenSim.Region.Physics.BulletXPlugin
956 parent_scene.ddWorld.AddRigidBody(rigidBody); 973 parent_scene.ddWorld.AddRigidBody(rigidBody);
957 } 974 }
958 } 975 }
959 976 public override int PhysicsActorType
977 {
978 get { return (int)ActorTypes.Agent; }
979 set { return; }
980 }
960 public override PhysicsVector Position 981 public override PhysicsVector Position
961 { 982 {
962 get { return base.Position; } 983 get { return base.Position; }
@@ -1103,7 +1124,11 @@ namespace OpenSim.Region.Physics.BulletXPlugin
1103 1124
1104 CreateRigidBody(parent_scene, mesh, pos, size); 1125 CreateRigidBody(parent_scene, mesh, pos, size);
1105 } 1126 }
1106 1127 public override int PhysicsActorType
1128 {
1129 get { return (int)ActorTypes.Prim; }
1130 set { return; }
1131 }
1107 public override PhysicsVector Position 1132 public override PhysicsVector Position
1108 { 1133 {
1109 get { return base.Position; } 1134 get { return base.Position; }