Object2D.h
void AddVelocity(double factor, double direction)
Compounds a velocity vector with the current velocity.
Definition: AssetID.h:37
std::string GetInfo()
Returns a string containing human-readable information on the state of the component.
void SetVelocity(double factor, double direction)
Sets the velocity vector of an object.
A component that gives movement and collision-detection related attributes to an Entity in 2D space...
Definition: Object2D.h:55
Dynacoe::Vector GetNextPosition()
Returns the position of the Entity after another frame of movement.
void OnAttach()
Function that is called upon a host entity's Attach() function calling. It is run right after the hos...
void SetSpeed(double)
Sets the speed of the object in the current direction.
void SetFrictionY(double amt)
Same as SetFrictionX(), but in the vertical direction.
Class that extends the functionality of an Entity, but as a removable and addable object...
Definition: Component.h:66
double GetVelocityX()
Returns the horizontal component of the current velocity.
double GetVelocityY()
Returns the vertical component of the current velocity.
void SetFrictionX(double amt)
Sets the amount of resistance to speed measured as a percentile.
double GetDirection()
Returns the current direction that the entity is traveling in degrees.