ah, no, its ok, I fixed it. I hadn't realised that the groundBody had no collision. However, I do have another question now;
I realise that b2bodys have to have polygon(s) associated with them to collide, and I know how to get the vertices of that polygon. However, when the body is updated how do I then get the vertices of the shape associated with the body. this may be unclear or impossible.
for example, say I had a body, with a polygon set as a box. now I know how to get the vertices of that shape, and I have managed to create a simple hack by adding the bodys coordinates to each of the vertices and this is ok, if the shape does not rotate. however, if it rotates the vertices do not, and I was wondering if there was a way of getting the locations of the vertices of the shape each "frame" even if the body is moving or rotating. Ill post my sample code to show you what Ive done so far (rubbish as it may be).
I realise that b2bodys have to have polygon(s) associated with them to collide, and I know how to get the vertices of that polygon. However, when the body is updated how do I then get the vertices of the shape associated with the body. this may be unclear or impossible.
for example, say I had a body, with a polygon set as a box. now I know how to get the vertices of that shape, and I have managed to create a simple hack by adding the bodys coordinates to each of the vertices and this is ok, if the shape does not rotate. however, if it rotates the vertices do not, and I was wondering if there was a way of getting the locations of the vertices of the shape each "frame" even if the body is moving or rotating. Ill post my sample code to show you what Ive done so far (rubbish as it may be).