still issues with volume detectors and sleeping bodies
parent
4f8f04d949
commit
156ef0bbe3
|
@ -1205,13 +1205,17 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal void clearSleeperCollisions()
|
||||||
|
{
|
||||||
|
if(CollisionVDTCEventsThisFrame != null && CollisionVDTCEventsThisFrame.Count >0 )
|
||||||
|
CollisionVDTCEventsThisFrame.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
public void SendCollisions(int timestep)
|
public void SendCollisions(int timestep)
|
||||||
{
|
{
|
||||||
if (m_cureventsubscription < 50000)
|
if (m_cureventsubscription < 50000)
|
||||||
m_cureventsubscription += timestep;
|
m_cureventsubscription += timestep;
|
||||||
|
|
||||||
if(CollisionVDTCEventsThisFrame != null && CollisionVDTCEventsThisFrame.Count >0 && (Body == IntPtr.Zero || d.BodyIsEnabled(Body)))
|
|
||||||
CollisionVDTCEventsThisFrame.Clear();
|
|
||||||
|
|
||||||
if (m_cureventsubscription < m_eventsubscription)
|
if (m_cureventsubscription < m_eventsubscription)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1172,6 +1172,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||||
{
|
{
|
||||||
aprim.CollisionScore = 0;
|
aprim.CollisionScore = 0;
|
||||||
aprim.IsColliding = false;
|
aprim.IsColliding = false;
|
||||||
|
if(!aprim.m_outbounds && d.BodyIsEnabled(aprim.Body))
|
||||||
|
aprim.clearSleeperCollisions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lock (_activegroups)
|
lock (_activegroups)
|
||||||
|
|
Loading…
Reference in New Issue