As my game needs more than 16 different "collision types" I need to be able to use the groupIndex option that Box2D offers.
In return I will use a nice little OBEY Avatar. What do you say?
Requesting groupIndex support for Box2D
- counterfactual_jones
- Prole
- Posts: 24
- Joined: Mon Feb 09, 2009 10:14 am
Re: Requesting groupIndex support for Box2D
I thought the shapedata was (possibly) unique for each shape?
So you do this:
then have this:
So you do this:
Code: Select all
circle_shape:setData("Ball") -- Set a string userdata
world:setCallback(collision)
Code: Select all
function collision(a, b, c)
if a == "Ball" then
-- do something
end
if b == "Ball" then
-- do something
end
end
Re: Requesting groupIndex support for Box2D
counterfactual_jones: It's not about shapedata.
Take a look at 6.2.3. Filtering in the box2D manual for a description.
rude: What did you add? The support? The request to a todo? Tell me.
Take a look at 6.2.3. Filtering in the box2D manual for a description.
rude: What did you add? The support? The request to a todo? Tell me.
Who is online
Users browsing this forum: No registered users and 8 guests