X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FCharacter.cc;h=01b4753f0f2287372e23b527293a050ee4fd1117;hp=a857cbebfa6fffbb76facc3830c220d67df59b52;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=85783316365181491a3e3c0c63659972477cebba diff --git a/src/Character.cc b/src/Character.cc index a857cbe..01b4753 100644 --- a/src/Character.cc +++ b/src/Character.cc @@ -73,13 +73,13 @@ Character::Character(const std::string& name) : // forces state_.force = moof::vector2(0.0, 0.0); - //state_.forces.push_back(SpringForce(moof::vector2(5.0, 4.0))); + state_.forces.push_back(SpringForce(moof::vector2(5.0, 4.0))); state_.forces.push_back(ResistanceForce(2.0)); - //state_.forces.push_back(moof::linear_state<2>::gravity_force(-9.8)); + state_.forces.push_back(moof::linear_state<2>::gravity_force(-9.8)); // starting position state_.position = moof::vector2(5.0, 5.0); - state_.momentum = moof::vector2(0.0, 0.0); + state_.momentum = moof::vector2(1.0, 0.0); state_.recalculate(); prev_state_ = state_;