I'm reading the documentation of box2d library at
http://www.box2d.org/manual.html#d0e544
and have see some very interesting functions to know what is in the world and what is at a rectangle in the world, the functions are
GetBodyList()
for a list of bodies in the world and
AABB Queries
for queries to the world, the result is a sort of list of bodies in the rectangle
I've not see this in our love library.....or i'm mistaked?
there is some function to do it? ...I have'nt see at docs sorry :-)
Exploring the Box2d World
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Exploring the Box2d World
Uhm... I think this is the wrong section, but you can search and download "wrath" or "envy" in the Project and Demos section. (It's a game powered by Box2D)
Re: Exploring the Box2d World
my mistake
Re: Exploring the Box2d World
Sorry, it's true, this message was for the developement board........One administrator can change please?
Envy is a framework for make my life easy but has'nt these functions i think
Envy is a framework for make my life easy but has'nt these functions i think
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Exploring the Box2d World
At least GetBodyList() is easy to implement if you just keep a table around where you store all bodies:
etc.
Code: Select all
bodylist = {}
table.insert(bodylist, love.physics.newBody(...)
Help us help you: attach a .love.
Re: Exploring the Box2d World
thanks for responses.... but ... yes and not, when programming object oriented this is not possible to do that and i've see a site for raytracing (what is the next intersection with a phisical object when tracing a line from point to point)
i've this site to start learning
http://www.ogre3d.org/wiki/index.php/Ra ... ygon_level
i've this site to start learning
http://www.ogre3d.org/wiki/index.php/Ra ... ygon_level
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot], zorg and 1 guest