Releases: wiserim/phaser-raycaster
Releases · wiserim/phaser-raycaster
v0.10.10
v0.10.9
v0.10.9
- Rework of
Map.updateMap
method for matter objects. Map.updateMap
method for matter objects now ignores internal segments in concave bodies.- Bugfix:
Ray.cast
method won't test mapped object when ray is inside of mapped object and hit another mapped object within / overlap the first one. - Bugfix:
Map.updateMap
method for matter objects don't map properly non enclosed concave bodies.
v0.10.8
v0.10.7
v0.10.7
Map.update
method now add array of neighbours to points in Map.points.- Optimisation of
Map.update
method for tilemaps. Ray.castCircle
andRay.castCone
methods now checks if ray is "glancing" mapped objects.Ray.cast
method now won't test mapped object if current closest intersection is closer to ray than it's bounding box.- Bugfix:
Raycaster.removeMappedObjects
method isn't checking if passed objects are mapped. - Bugfix:
Map.destroy
method doesn't work properly for Arcade and Matter bodies (fixed by @dreasgrech). - Fixed docs typos
v0.10.6
v0.10.6
- Added
Raycaster.dynamicMappedObjects
to store dynamic maps. Raycaster.update
method now traverse throughRaycaster.dynamicMappedObjects
to update maps.- Setting
Raycaster.Map.dynamic
now updatesRaycaster.dynamicMappedObjects
andRatcaster._stats
. - Bugfix:
Raycaster.drawDebug
method isn't checking if mapped object has defined data property. - Bugfix:
Raycaster.destroy
method isn't destroyingRaycaster.graphics
object used for debug. - Bugfix:
Raycaster.destroy
method isn't removing scene'supdate
event listener. - Bugfix:
Ray.destroy
method isn't destroyingRay.graphics
object used for debug.
v0.10.5
v0.10.4
v0.10.3
v0.10.3
- Added
Ray.destroy
method. - Added
Map.destroy
method. - Added
Raycaster.destroy
method. - Added
mapChild
option toMap.config
parameters. Raycaster.removeMappedObjects
method now also destroys Map objects.- Container's Map now allows to choose single child element which will be mapped, by passing it as
mapChild
option toMap.config
parameters. - Container's Map now allows to use circle map children with
Map.segmentCount
set to 0. Transformed children circles are stored inMap._circles
property. - Updated NPM dev dependencies.