X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FCharacter.cc;h=01b4753f0f2287372e23b527293a050ee4fd1117;hb=f6d0b86430cc515164b298046542f80f42a29c65;hp=a857cbebfa6fffbb76facc3830c220d67df59b52;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc;p=chaz%2Fyoink 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_;