diff options
author | UbitUmarov | 2016-08-06 02:05:23 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-06 02:05:23 +0100 |
commit | 17cc238b443adbdddf45db4a1a023d0b564ac860 (patch) | |
tree | c579babba10b8a1c431929f9b17bb11cf913ee23 /OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs | |
parent | fix osGetHealRate thread level (diff) | |
download | opensim-SC-17cc238b443adbdddf45db4a1a023d0b564ac860.zip opensim-SC-17cc238b443adbdddf45db4a1a023d0b564ac860.tar.gz opensim-SC-17cc238b443adbdddf45db4a1a023d0b564ac860.tar.bz2 opensim-SC-17cc238b443adbdddf45db4a1a023d0b564ac860.tar.xz |
ubOde a few changes to collisions reporting
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs b/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs index 49020e9..cef7063 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODECharacter.cs | |||
@@ -1578,6 +1578,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
1578 | } | 1578 | } |
1579 | } | 1579 | } |
1580 | m_eventsubscription = 0; | 1580 | m_eventsubscription = 0; |
1581 | _parent_scene.RemoveCollisionEventReporting(this); | ||
1581 | } | 1582 | } |
1582 | 1583 | ||
1583 | public override void AddCollisionEvent(uint CollidedWith, ContactPoint contact) | 1584 | public override void AddCollisionEvent(uint CollidedWith, ContactPoint contact) |
@@ -1591,8 +1592,11 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
1591 | } | 1592 | } |
1592 | } | 1593 | } |
1593 | 1594 | ||
1594 | public void SendCollisions() | 1595 | public void SendCollisions(int timestep) |
1595 | { | 1596 | { |
1597 | if (m_cureventsubscription < 50000) | ||
1598 | m_cureventsubscription += timestep; | ||
1599 | |||
1596 | if (CollisionEventsThisFrame == null) | 1600 | if (CollisionEventsThisFrame == null) |
1597 | return; | 1601 | return; |
1598 | 1602 | ||
@@ -1623,13 +1627,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
1623 | } | 1627 | } |
1624 | } | 1628 | } |
1625 | 1629 | ||
1626 | internal void AddCollisionFrameTime(int t) | ||
1627 | { | ||
1628 | // protect it from overflow crashing | ||
1629 | if (m_cureventsubscription < 50000) | ||
1630 | m_cureventsubscription += t; | ||
1631 | } | ||
1632 | |||
1633 | public override bool SubscribedEvents() | 1630 | public override bool SubscribedEvents() |
1634 | { | 1631 | { |
1635 | if (m_eventsubscription > 0) | 1632 | if (m_eventsubscription > 0) |