How to raycast? [Closed]

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
baka-lavr
Prole
Posts: 2
Joined: Sun Apr 01, 2018 7:24 am

How to raycast? [Closed]

Post 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.
Last edited by baka-lavr on Sat Apr 14, 2018 3:56 pm, edited 1 time in total.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: How to raycast?

Post by raidho36 »

Try specifying that the player's own shape shouldn't affect the raycast.
baka-lavr
Prole
Posts: 2
Joined: Sun Apr 01, 2018 7:24 am

Re: How to raycast?

Post by baka-lavr »

Ok, i use world:rayCast. It working, but i don't understand, how check lack of callback.
Ed.: problem solved. Closed.
Post Reply

Who is online

Users browsing this forum: No registered users and 133 guests