Basically i'd like to move a box2d body of a LHSprite that I created using LevelHelper. I have tried moving the box2d body of the LHSprite, based on weather my SneakyJoystick is active (that part works fine) with the following code:
if(dpad.leftJoystick.velocity.x > 0){
b2Vec2 force;
force.Set(dpad.leftJoystick.velocity.x * 10.0f, 0.0f);
Player.body->ApplyForce(force, Player.body->GetPosition());
}
Can anyone see how I can get this working?
Thanks.