aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin
diff options
context:
space:
mode:
authorTeravus Ovares2008-05-03 15:39:40 +0000
committerTeravus Ovares2008-05-03 15:39:40 +0000
commite8acb49fefc0e567510b4058b6571599a0158b62 (patch)
treed87243f8d596b6df07db190ba30bf2da4d608c18 /OpenSim/Region/Physics/OdePlugin
parent* Committing some collision stuffs that I'm working on. (diff)
downloadopensim-SC_OLD-e8acb49fefc0e567510b4058b6571599a0158b62.zip
opensim-SC_OLD-e8acb49fefc0e567510b4058b6571599a0158b62.tar.gz
opensim-SC_OLD-e8acb49fefc0e567510b4058b6571599a0158b62.tar.bz2
opensim-SC_OLD-e8acb49fefc0e567510b4058b6571599a0158b62.tar.xz
* For your fragging desire, damage enabled land works, but watch out!, life does not regenerate until you're dead!
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODECharacter.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
index 39f94cb..3d0855f 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
@@ -113,7 +113,7 @@ namespace OpenSim.Region.Physics.OdePlugin
113 public bool collidelock = false; 113 public bool collidelock = false;
114 114
115 public int m_eventsubscription = 0; 115 public int m_eventsubscription = 0;
116 private CollisionEventUpdate CollisionEventsThisFrame = null; 116 private CollisionEventUpdate CollisionEventsThisFrame = new CollisionEventUpdate();
117 117
118 public OdeCharacter(String avName, OdeScene parent_scene, PhysicsVector pos, CollisionLocker dode, PhysicsVector size) 118 public OdeCharacter(String avName, OdeScene parent_scene, PhysicsVector pos, CollisionLocker dode, PhysicsVector size)
119 { 119 {
@@ -869,9 +869,11 @@ namespace OpenSim.Region.Physics.OdePlugin
869 public override void SubscribeEvents(int ms) 869 public override void SubscribeEvents(int ms)
870 { 870 {
871 m_eventsubscription = ms; 871 m_eventsubscription = ms;
872 _parent_scene.addCollisionEventReporting(this);
872 } 873 }
873 public override void UnSubscribeEvents() 874 public override void UnSubscribeEvents()
874 { 875 {
876 _parent_scene.remCollisionEventReporting(this);
875 m_eventsubscription = 0; 877 m_eventsubscription = 0;
876 } 878 }
877 public void AddCollisionEvent(uint CollidedWith, float depth) 879 public void AddCollisionEvent(uint CollidedWith, float depth)