Page 1 of 1
How to raycast? [Closed]
Posted: Thu Apr 12, 2018 11:24 pm
by baka-lavr
Hi all, i newbie in love2d. I have player and want to raycast from him.
I trying fixture:rayCast, but it hit only player shape.
Re: How to raycast?
Posted: Fri Apr 13, 2018 6:08 am
by raidho36
Try specifying that the player's own shape shouldn't affect the raycast.
Re: How to raycast?
Posted: Sat Apr 14, 2018 10:52 am
by baka-lavr
Ok, i use world:rayCast. It working, but i don't understand, how check lack of callback.
Ed.: problem solved. Closed.