Hello,
I have continued experimenting with my input handling but now have trouble getting physics to work. My ball (Pong) is initialized like so:
Ball::Ball()
{
ball = LoadModel("abstract::ball.gmf");
EntityType(ball, 1);
SetBodyMass(ball, 1.0f);
}
After the ball is initialized, Collisions(1, 1, 1) is called.
This is the Update method of the ball class:
void Ball::Update()
{
AddBodyForce(ball, Vec3(1.0f, 0.0f, 0.0f));
}
Setting a breakpoint confirmed it is getting called, yet the ball won't move a bit. If I call DebugPhysics(1) it does show a proper collision hull yet the hull remains red. Anyone know what I am missing here?