GamesEngine.Physics.Velocity (games_engine v0.3.0)
Velocity module
Summary
Functions
Creates a new %Velocity{}
struct with 0 speed in the x and y directions
Creates a new %Velocity{}
struct based on a direction vector
Creates a new %Velocity{}
struct based on a speed and heading
Heading is expected in degrees
Types
Functions
Link to this function
new()
@spec new() :: t()
Creates a new %Velocity{}
struct with 0 speed in the x and y directions
Link to this function
new(arg)
Creates a new %Velocity{}
struct based on a direction vector
Link to this function
new(speed, heading)
Creates a new %Velocity{}
struct based on a speed and heading
Heading is expected in degrees