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
check for physics objects in certain area?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Citizen
- Posts: 86
- Joined: Mon Jul 17, 2017 2:07 pm
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
-
- Citizen
- Posts: 86
- Joined: Mon Jul 17, 2017 2:07 pm
Re: check for physics objects in certain area?
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?
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?
Who is online
Users browsing this forum: No registered users and 71 guests