Add an offset in HorzCollisionBar and reset it at the beginning of every frame.
This commit is contained in:
parent
cdd37fead7
commit
3522ce37a3
8 changed files with 67 additions and 10 deletions
|
@ -27,12 +27,13 @@ namespace cloonel {
|
|||
class Placeable {
|
||||
public:
|
||||
float2 GetPos ( void ) const noexcept;
|
||||
void AddOffset ( const float2& parOffset ) noexcept;
|
||||
virtual void AddOffset ( const float2& parOffset ) noexcept;
|
||||
virtual void OnRegister ( Mover& parMover, Mover::PlaceableTicketType parParentTicket );
|
||||
virtual void BeginMovement ( void );
|
||||
|
||||
protected:
|
||||
explicit Placeable ( float2 parPos );
|
||||
~Placeable ( void ) noexcept = default;
|
||||
virtual ~Placeable ( void ) noexcept = default;
|
||||
|
||||
private:
|
||||
float2 m_pos;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue