Raycasting plugin for Phaser 3. Documentation:
MIT License
Bot releases are visible (Hide)
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.Published by wiserim about 1 year ago
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.Published by wiserim about 1 year ago
v0.10.8
Map.update
method for polygons.Map.update
method for containers.Published by wiserim about 1 year ago
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).Published by wiserim over 1 year ago
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.Published by wiserim almost 2 years ago
v0.10.5
PhaserRaycaster
plugin class.Published by wiserim over 2 years ago
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.Published by wiserim over 2 years ago
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.Published by wiserim almost 3 years ago
v0.10.2
Ray.overlap
method is using deprecated method Ray.testOverlap
instead of Ray.testArcadeOverlap
to test Arcade body.Published by wiserim almost 3 years ago
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.Published by wiserim almost 3 years ago
v0.10.0
Ray.cast
, Ray.castCircle
and Ray.castCone
methods optimization.Published by wiserim about 3 years ago
v0.9.4
Published by wiserim over 3 years ago
v0.9.3
Published by wiserim over 3 years ago
v0.9.2
Published by wiserim almost 4 years ago
v0.9.1
Published by wiserim almost 4 years ago
v0.9.0
Published by wiserim about 4 years ago
v0.8.1
Published by wiserim over 4 years ago
v0.8.0
Published by wiserim over 4 years ago
v0.7.3
Published by wiserim over 4 years ago
v0.7.2