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:
parent
df8f5ca6b2
commit
164030202c
9 changed files with 82 additions and 7 deletions
|
@ -47,4 +47,10 @@ namespace cloonel {
|
|||
while (m_alpha >= pitwo)
|
||||
m_alpha -= pitwo;
|
||||
}
|
||||
|
||||
///--------------------------------------------------------------------------
|
||||
///--------------------------------------------------------------------------
|
||||
void MoverSine::ResetToBounce() {
|
||||
m_alpha = 0.0f;
|
||||
}
|
||||
} //namespace cloonel
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue