I have some methods to update the drawing for an actor in Actor
//Initialize
body->m_userData = new Actor(x,y);
//updates
I tried:
b2Vec2 postn = shape->m_position;
body->m_userData->update(postn.x,postn.y);
error C2227: left of '->update' must point to class/struct/union/generic type type is 'void *'
Anybody can help me with this?
//Initialize
body->m_userData = new Actor(x,y);
//updates
I tried:
b2Vec2 postn = shape->m_position;
body->m_userData->update(postn.x,postn.y);
error C2227: left of '->update' must point to class/struct/union/generic type type is 'void *'
Anybody can help me with this?