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
|
@ -28,6 +28,7 @@ namespace cloonel {
|
|||
public:
|
||||
float2 GetPos ( void ) const noexcept;
|
||||
virtual void AddOffset ( const float2& parOffset ) noexcept;
|
||||
virtual void SetAbsolutePosition ( const float2& parPos ) noexcept;
|
||||
virtual void OnRegister ( Mover& parMover, Mover::PlaceableTicketType parParentTicket );
|
||||
virtual void BeginMovement ( void );
|
||||
|
||||
|
@ -50,6 +51,12 @@ namespace cloonel {
|
|||
inline float2 Placeable::GetPos() const noexcept {
|
||||
return m_pos;
|
||||
}
|
||||
|
||||
///--------------------------------------------------------------------------
|
||||
///--------------------------------------------------------------------------
|
||||
inline void Placeable::SetAbsolutePosition (const float2& parPos) noexcept {
|
||||
m_pos = parPos;
|
||||
}
|
||||
} //namespace cloonel
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue