check for physics objects in certain area?

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
DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

check for physics objects in certain area?

Post by DarkShroom »

Hi

Sorry if this is a stupid question, do i have to make like a fixture and make it a sensor?

I want to query what objects are in a certain area, they are physics shapes

Similar to Unity 3D's "sphere cast"

Thanks
DarkShroom
Citizen
Posts: 86
Joined: Mon Jul 17, 2017 2:07 pm

Re: check for physics objects in certain area?

Post by DarkShroom »

in this link it shows we can make a raycast:
https://love2d.org/wiki/World:rayCast

i was trying to figure if i can cast a circle or square at all like the spherecast in unity?

using a sensor adds complications as i have to likely wait for the collision callback... i assume it's not possible then to just make a simple query?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 77 guests