From 42b579d4c8ca2e75fb5e6ceaa925698e2cc60013 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 6 Jan 2023 13:54:55 +0000 Subject: [PATCH] Update CHANGELOG-v3.60.md --- CHANGELOG-v3.60.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-v3.60.md b/CHANGELOG-v3.60.md index d79c08b9b..06230bc74 100644 --- a/CHANGELOG-v3.60.md +++ b/CHANGELOG-v3.60.md @@ -276,6 +276,7 @@ emitter.addDeathZone({ type: 'onEnter', source: circle }); * Particles now have the ability to calculate their bounding box, based on their position, scale, rotation, texture frame and the transform of their parent. You can call the new `Particle.getBounds` method to return the bounds, which also gets stored in the new `Particle.bounds` Rectangle property. * `ParticleEmitter.getBounds` is a new method that will return the bounds of the Emitter based on all currently active particles. Optional parameters allow you to pad out the bounds and/or advance time in the particle flow, to allow for a more accurate overall bounds generation. +* `ParticleEmitter.viewBounds` is a new property that is a Geom Rectangle. Set this Rectangle to define the overall area the emitter will render to. If this area doesn't intersect with the Camera then the emitter will be culled from rendering. This allows you to populate large Scenes with active emitters that don't consume rendering resources even though they are offscreen. Use the new `getBounds` method to help define the `viewBounds` area. * `ParticleEmitter.overlap` is a new method that will run a rectangle intersection test against the given target and all alive particles, returning those that overlap in an array. The target can be a Rectangle Geometry object or an Arcade Physics Body. * `Particle.kill` is a new method that will set the life of the particle to zero, forcing it to be immediately killed on the next Particle Emitter update. * `ParticleEmitter.getWorldTransformMatrix` is a new method that allows a Particle Emitter to calculate its world transform, factoring in any parents.