* refactor: little tweaks to trigger another build
parent
4aad6a07ff
commit
95643971be
|
@ -1877,8 +1877,10 @@ if (m_shape != null) {
|
||||||
// always running this check because if the user deletes the object it would return a null reference.
|
// always running this check because if the user deletes the object it would return a null reference.
|
||||||
if (m_parentGroup == null)
|
if (m_parentGroup == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_parentGroup.Scene == null)
|
if (m_parentGroup.Scene == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SceneObjectPart obj = m_parentGroup.Scene.GetSceneObjectPart(localId);
|
SceneObjectPart obj = m_parentGroup.Scene.GetSceneObjectPart(localId);
|
||||||
if (obj != null)
|
if (obj != null)
|
||||||
{
|
{
|
||||||
|
@ -1923,12 +1925,15 @@ if (m_shape != null) {
|
||||||
// always running this check because if the user deletes the object it would return a null reference.
|
// always running this check because if the user deletes the object it would return a null reference.
|
||||||
if (m_parentGroup == null)
|
if (m_parentGroup == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_parentGroup.Scene == null)
|
if (m_parentGroup.Scene == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_parentGroup.Scene.EventManager.TriggerScriptCollidingStart(LocalId, StartCollidingMessage);
|
m_parentGroup.Scene.EventManager.TriggerScriptCollidingStart(LocalId, StartCollidingMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((m_parentGroup.RootPart.ScriptEvents & scriptEvents.collision) != 0)
|
if ((m_parentGroup.RootPart.ScriptEvents & scriptEvents.collision) != 0)
|
||||||
{
|
{
|
||||||
if (m_lastColliders.Count > 0)
|
if (m_lastColliders.Count > 0)
|
||||||
|
@ -1943,8 +1948,10 @@ if (m_shape != null) {
|
||||||
|
|
||||||
if (m_parentGroup == null)
|
if (m_parentGroup == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_parentGroup.Scene == null)
|
if (m_parentGroup.Scene == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SceneObjectPart obj = m_parentGroup.Scene.GetSceneObjectPart(localId);
|
SceneObjectPart obj = m_parentGroup.Scene.GetSceneObjectPart(localId);
|
||||||
if (obj != null)
|
if (obj != null)
|
||||||
{
|
{
|
||||||
|
@ -1990,13 +1997,15 @@ if (m_shape != null) {
|
||||||
// always running this check because if the user deletes the object it would return a null reference.
|
// always running this check because if the user deletes the object it would return a null reference.
|
||||||
if (m_parentGroup == null)
|
if (m_parentGroup == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_parentGroup.Scene == null)
|
if (m_parentGroup.Scene == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_parentGroup.Scene.EventManager.TriggerScriptColliding(LocalId, CollidingMessage);
|
m_parentGroup.Scene.EventManager.TriggerScriptColliding(LocalId, CollidingMessage);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ((m_parentGroup.RootPart.ScriptEvents & scriptEvents.collision_end) != 0)
|
if ((m_parentGroup.RootPart.ScriptEvents & scriptEvents.collision_end) != 0)
|
||||||
{
|
{
|
||||||
if (endedColliders.Count > 0)
|
if (endedColliders.Count > 0)
|
||||||
|
@ -2048,28 +2057,30 @@ if (m_shape != null) {
|
||||||
colliding.Add(detobj);
|
colliding.Add(detobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (colliding.Count > 0)
|
if (colliding.Count > 0)
|
||||||
{
|
{
|
||||||
EndCollidingMessage.Colliders = colliding;
|
EndCollidingMessage.Colliders = colliding;
|
||||||
// always running this check because if the user deletes the object it would return a null reference.
|
// always running this check because if the user deletes the object it would return a null reference.
|
||||||
if (m_parentGroup == null)
|
if (m_parentGroup == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_parentGroup.Scene == null)
|
if (m_parentGroup.Scene == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_parentGroup.Scene.EventManager.TriggerScriptCollidingEnd(LocalId, EndCollidingMessage);
|
m_parentGroup.Scene.EventManager.TriggerScriptCollidingEnd(LocalId, EndCollidingMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PhysicsOutOfBounds(PhysicsVector pos)
|
public void PhysicsOutOfBounds(PhysicsVector pos)
|
||||||
{
|
{
|
||||||
m_log.Info("[PHYSICS]: Physical Object went out of bounds.");
|
m_log.Error("[PHYSICS]: Physical Object went out of bounds.");
|
||||||
|
|
||||||
RemFlag(PrimFlags.Physics);
|
RemFlag(PrimFlags.Physics);
|
||||||
DoPhysicsPropertyUpdate(false, true);
|
DoPhysicsPropertyUpdate(false, true);
|
||||||
//m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
|
//m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
|
||||||
|
|
Loading…
Reference in New Issue