current.mass = 1.0;
current.inverseMass = 1.0 / current.mass;
+ // gravity
current.force = Mf::Vector2(0.0, -120.0);
+ // starting position
current.position = Mf::Vector2(64.0, 64.0);
current.momentum = Mf::Vector2(0.0, 0.0);
current.recalculate();
updateContainers();
}
-Character::~Character()
-{
- //delete texture;
- //delete anim;
-}
-
void Character::update(Mf::Scalar t, Mf::Scalar dt)
{