Box2D - wrong method implementation

BlitzMax Forums/Brucey's Modules/Box2D - wrong method implementation

Armitage 1982(Posted 2008) [#1]
Hi Brucey

I finally found some time to pursue my project ^^

There is a small mistake in the example test.bmx

ContactListener Type implement the remove() Method whereas it should be removed() according to the box2d.bmx
This is why removed contact points never process.

Note that in the box2d documentation remove() is the right one ;)

So how things going in the UK ? :D


Brucey(Posted 2008) [#2]
Oops. Another case of too much typing and not paying enough attention to what my fingers are entering ;-)

Updated in SVN - fixed the typo to be Remove instead of Removed.
Latest also includes a new example, car, and the latest box2d svn (rev 168).


So how things going in the UK ?

Great thanks. All this rain kind of puts one in the mood to code! :-)


Armitage 1982(Posted 2008) [#3]
All this rain kind of puts one in the mood to code! :-)

Same weather here in Belgium... Don't you have a module or something in your collection to fix this ? :]

The car example work great.
'Impressive' jump by the way ! :]


Armitage 1982(Posted 2008) [#4]
Do not forget to syncing b2CollidePoly.cpp to rev 142.
I think something's moving there with the last module revision ;)


Brucey(Posted 2008) [#5]
I tested your example with the latest code and it looks to have been fixed now.
Have they broken something else?


Armitage 1982(Posted 2008) [#6]
Hum I will see in the next sync ;)
Maybe I was using an old version of the module on this machine.

b2ShapeDef method SetIsSensor() is missing though !
They forgot it in the manual...
Also you should be able to set a sensor like this (C++):
b2BodyDef bd;
bd.isSensor = true;



Brucey(Posted 2008) [#7]
I've added it to b2ShapeDef. (SetIsSensor() and IsSensor())

I think your code example was a typo? :-)


Armitage 1982(Posted 2008) [#8]
:D Thanks !
Typo ? Maybe for non-C++ blitz User ;) Just to be sure nobody ask me why b2BodyDef bd; isn't working ^^