p5play
p5play copied to clipboard
`world.rayCast` provide more info (intersection point and angle)
I'm thinking that each sprite in the returned sprite array could have rayIntersect
and rayIncidence
properties, these would be written to by world.rayCast
and world.rayCastAll
.
👍 Great idea. Would call for some cool rendering