Raycasting plugin for Phaser 3. Documentation:
v0.10.10
npm run build-typings
command now add module declaration to types.d.ts file automatically.Map.updateMap
method for containers doesn't check if child object's points array is empty while assigning neighbour points to last point.v0.10.9
Map.updateMap
method for matter objects.Map.updateMap
method for matter objects now ignores internal segments in concave bodies.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.Map.updateMap
method for matter objects don't map properly non enclosed concave bodies.v0.10.8
Map.update
method for polygons.Map.update
method for containers.v0.10.7
Map.update
method now add array of neighbours to points in Map.points.Map.update
method for tilemaps.Ray.castCircle
and Ray.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.Raycaster.removeMappedObjects
method isn't checking if passed objects are mapped.Map.destroy
method doesn't work properly for Arcade and Matter bodies (fixed by @dreasgrech).v0.10.6
Raycaster.dynamicMappedObjects
to store dynamic maps.Raycaster.update
method now traverse through Raycaster.dynamicMappedObjects
to update maps.Raycaster.Map.dynamic
now updates Raycaster.dynamicMappedObjects
and Ratcaster._stats
.Raycaster.drawDebug
method isn't checking if mapped object has defined data property.Raycaster.destroy
method isn't destroying Raycaster.graphics
object used for debug.Raycaster.destroy
method isn't removing scene's update
event listener.Ray.destroy
method isn't destroying Ray.graphics
object used for debug.v0.10.5
PhaserRaycaster
plugin class.v0.10.4
Raycaster.mapGameObjects
method now checks if mapped object is supported.Map.updateMap
method for container objects now checks if mapped children objects are supported.v0.10.3
Ray.destroy
method.Map.destroy
method.Raycaster.destroy
method.mapChild
option to Map.config
parameters.Raycaster.removeMappedObjects
method now also destroys Map objects.mapChild
option to Map.config
parameters.Map.segmentCount
set to 0. Transformed children circles are stored in Map._circles
property.v0.10.2
Ray.overlap
method is using deprecated method Ray.testOverlap
instead of Ray.testArcadeOverlap
to test Arcade body.v0.10.1
Raycaster.update
- typo in code.Ray.cast
, Ray.castCircle
and Ray.castCone
methods after optimization in fringe cases when ray "glanced" object's border box corner didn't detect hit properly.