Hi, I'm working on a Tile based 2d platformer and creating the walls as b2EdgeShapes using this tutorial on ghost vertices because of the box2d bug when the player get stuck on vertices when you use one box for each tile.
I have this error message when i'm trying to use b2EdgeShape
I don't use TestBed so I can't reproduce it, but I can show you the essential :
I searched a lot on google and in this forum but i didn't find, I use many box2d features but only this one fail.
I tried with all version of box2d that i've found (v2.2.0, v2.1.2, v2.3.0) that allow using b2EdgeShape.
I really need your help, I can't figure out how to fix it and i'm pretty sure that i'll not find it by myself now..
Thank you in advance and sorry if my english is bad 😁
ps : I have windows 8 and I use CodeBlocks in C++.
Nigel
I have this error message when i'm trying to use b2EdgeShape
Code: Select all
undefined reference to `b2EdgeShape::Set(b2Vec2 const&, b2Vec2 const&)'|I don't use TestBed so I can't reproduce it, but I can show you the essential :
Code: Select all
#include <Box2D/Box2D.h>
void myFunctionForWallCreation()
{
b2EdgeShape *tabEdgeShape [nbOfWalls];
b2Vec2 tableau[2];
// set of tableau's values here depending of the vertices position of my walls
// and then this loop
while (i<nbOfWalls)
{
// so here is the problem :
tabEdgeShape[i]->Set(tableau[0],tableau[1]); // this line fail
i++;
}
}I searched a lot on google and in this forum but i didn't find, I use many box2d features but only this one fail.
I tried with all version of box2d that i've found (v2.2.0, v2.1.2, v2.3.0) that allow using b2EdgeShape.
I really need your help, I can't figure out how to fix it and i'm pretty sure that i'll not find it by myself now..
Thank you in advance and sorry if my english is bad 😁
ps : I have windows 8 and I use CodeBlocks in C++.
Nigel