Temporary movement code.
This commit is contained in:
parent
fce08ed793
commit
d27b5773ca
3 changed files with 37 additions and 13 deletions
|
@ -31,7 +31,7 @@ namespace cloonel {
|
|||
MovementDirection_Still
|
||||
};
|
||||
|
||||
MoverLeftRight ( void );
|
||||
MoverLeftRight ( float parMaxVelocity, float parMass, float parForce );
|
||||
virtual ~MoverLeftRight ( void ) noexcept = default;
|
||||
|
||||
void SetMovement ( MovementDirectionType parDirection );
|
||||
|
@ -40,9 +40,11 @@ namespace cloonel {
|
|||
virtual float2 GetOffset ( void ) const;
|
||||
virtual void ApplyMotion ( float parDelta );
|
||||
|
||||
float m_movement;
|
||||
float m_velocity;
|
||||
float m_step;
|
||||
float m_maxVelocity;
|
||||
float m_invMass;
|
||||
float m_force;
|
||||
float m_movementTarget;
|
||||
};
|
||||
} //namespace cloonel
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue