Box2D - wrong method implementation
BlitzMax Forums/Brucey's Modules/Box2D - wrong method implementation
| ||
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 |
| ||
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! :-) |
| ||
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 ! :] |
| ||
Do not forget to syncing b2CollidePoly.cpp to rev 142. I think something's moving there with the last module revision ;) |
| ||
I tested your example with the latest code and it looks to have been fixed now. Have they broken something else? |
| ||
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; |
| ||
I've added it to b2ShapeDef. (SetIsSensor() and IsSensor()) I think your code example was a typo? :-) |
| ||
:D Thanks ! Typo ? Maybe for non-C++ blitz User ;) Just to be sure nobody ask me why b2BodyDef bd; isn't working ^^ |