Hi,
I am getting to grips with classes etc but am still having a few problems.... I have tried modifying the contact handler....
b2worldallback.h
b2worlcallback.cpp
it says GetFixtureA is not part of b2Contact... but I thought it was..... I am sorry to trouble you guys but I am ok with basic c and with maths, its classes etc that I have problems with.
Thanks.
I am getting to grips with classes etc but am still having a few problems.... I have tried modifying the contact handler....
b2worldallback.h
Code:
/// Called when two fixtures begin to touch.
void BeginContact(b2Contact* contact);
void BeginContact(b2Contact* contact);
b2worlcallback.cpp
Code:
void b2ContactListener::BeginContact(b2Contact* contact)
{
b2Fixture fixture = contact.GetFixtureA();
{
b2Fixture fixture = contact.GetFixtureA();
it says GetFixtureA is not part of b2Contact... but I thought it was..... I am sorry to trouble you guys but I am ok with basic c and with maths, its classes etc that I have problems with.
Thanks.