When the tag of Region Force component changed,the AABB of the

component should be appended to  m_pendingAabbUpdates of local wind
handler in wind bus after the wind provider delete the Force Region
entity.

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>
This commit is contained in:
T.J. McGrath-Daly
2021-12-16 10:35:25 +08:00
parent d20aa935ba
commit 15c6f6a4a8
+6
View File
@@ -159,6 +159,12 @@ namespace PhysX
AZStd::swap(m_entityTransformHandlers[index], m_entityTransformHandlers.back());
m_entityTransformHandlers.pop_back();
// When deleting entity from handler's m_entities, the AABB should be appended to m_pendingAabbUpdates
// for local wind handler to broadcast OnWindChanged to notify relative entities of wind changes in OnTick().
m_pendingAabbUpdates.push_back();
ColliderShapeRequestBus::EventResult(m_pendingAabbUpdates.back(),
entityId, &ColliderShapeRequestBus::Events::GetColliderShapeAabb);
m_changed = true;
}
}