Bouncing works but going too high causes an assertion.

This commit also reduces the jump size and the character's size.
This commit is contained in:
King_DuckZ 2014-08-03 15:13:54 +02:00
parent df8f5ca6b2
commit 164030202c
9 changed files with 82 additions and 7 deletions

View file

@ -47,4 +47,10 @@ namespace cloonel {
while (m_alpha >= pitwo)
m_alpha -= pitwo;
}
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
void MoverSine::ResetToBounce() {
m_alpha = 0.0f;
}
} //namespace cloonel

View file

@ -29,6 +29,7 @@ namespace cloonel {
~MoverSine ( void ) noexcept = default;
void SetPower ( float parPower ) noexcept { m_power = parPower; }
void ResetToBounce ( void );
private:
virtual void ApplyMotion ( float parDelta );