* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
// forces
state_.force = moof::vector2(0.0, 0.0);
//state_.forces.push_back(SpringForce(moof::vector2(5.0, 4.0)));
// forces
state_.force = moof::vector2(0.0, 0.0);
//state_.forces.push_back(SpringForce(moof::vector2(5.0, 4.0)));
//state_.forces.push_back(moof::linear_state<2>::gravity_force(-9.8));
// starting position
state_.position = moof::vector2(5.0, 5.0);
//state_.forces.push_back(moof::linear_state<2>::gravity_force(-9.8));
// starting position
state_.position = moof::vector2(5.0, 5.0);
void Character::update(moof::scalar t, moof::scalar dt)
{
moof::rigid_body2::update(t, dt); // update physics
void Character::update(moof::scalar t, moof::scalar dt)
{
moof::rigid_body2::update(t, dt); // update physics