Collision with only certain objects?

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.
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Collision with only certain objects?

Post by Jeeper »

I am confused by how people seem to think that the movement and other behavior in box2d can not be changed to whatever you want. I do agree that bumb is a great library. But I do not agree that box2d is this magically impossible thing that can only do 1 thing and is 100% impossible to use. Box2d is extremely solid, super easy to tweak and has a bunch of advanced features that are not present in other options.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Collision with only certain objects?

Post by kikito »

Jeeper wrote:I am confused by how people seem to think that the movement and other behavior in box2d can not be changed to whatever you want. [...] I do not agree that box2d is this magically impossible thing that can only do 1 thing and is 100% impossible to use.
Your confusion comes from a false premise. No one said it was "impossible" to modify box2d, or that "you could not change it". We said it is not the best tool for one particular job.
Jeeper wrote:super easy to tweak
Well, I have do disagree with you on that. Granted that my experience is with box2d is limited - last time I used was before it had fixtures. But on that limited experience, implementing a platformer on top of it felt like swimming against the tide. I reflected upon that and came to the conclusion I wrote above (platformer physics aren't as realistic as box2d physics, and that difference requires significant work and tweaking to be surpassed).

It is doable. But not simple or easy.
When I write def I mean function.
User avatar
adnzzzzZ
Party member
Posts: 305
Joined: Sun Dec 26, 2010 11:04 pm
Location: Porto Alegre, Brazil

Re: Collision with only certain objects?

Post by adnzzzzZ »

I have to agree with Jeeper here. The warning is silly and there's absolutely nothing wrong with making a platformer with box2d. You can control your physics calculations internally entirely if you want and just use body:setLinearVelocity(your_velocity_x, your_velocity_y). The only real things you have to learn is stuff like the question in this thread, but for that many resources already exist, like box2d's manual which is great, and this site: http://www.iforce2d.net/b2dtut/, which is also great. For the question in this thread specifically, this should help: http://www.iforce2d.net/b2dtut/collision-filtering, http://www.iforce2d.net/b2dtut/sensors
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests