Racing Car Movement
Racing Car Movement
The racing car movement makes an object move forwards, backwards and rotate when the user presses the arrow keys.
Creation
Movement_Car
Creates a new Racing Car movement object
Class Functions
Speed
SetMaxSpeed
Change the maximum speed of the object
GetMaxSpeed
Returns the maximum speed of the object
SelectMaxSpeed
Selects objects based on their maximum speed
SetAcceleration
Change the acceleration of the object
GetAcceleration
Returns the acceleration of the object
SelectAcceleration
Selects objects based on their acceleration
SetDeceleration
Change the deceleration of the object
GetDeceleration
Returns the deceleration of the object
SelectDeceleration
Selects objects based on their deceleration
SetRotationSpeed
Change the rotation speed of the object
GetRotationSpeed
Returns the rotation speed of the object
SelectRotationSpeed
Selects objects based on their rotation speed
Reversing
SetAllowReverse
Allows / disallows the object to reverse when down is pressed
GetAllowReverse
Checks if the object is allowed to reverse
SelectAllowReverse
Selects objects based on their ability to reverse
Instance Functions
Speed
SetMaxSpeed
Change the maximum speed of the object
GetMaxSpeed
Returns the maximum speed of the object
SetAcceleration
Change the acceleration of the object
GetAcceleration
Returns the acceleration of the object
SetDeceleration
Change the deceleration of the object
GetDeceleration
Returns the deceleration of the object
SetRotationSpeed
Change the rotation speed of the object
GetRotationSpeed
Returns the rotation speed of the object
Gravity
SetAllowReverse
Allows / disallows the object to reverse when down is pressed
GetAllowReverse
Checks if the object is allowed to reverse
JAM © 2005 no one in particular
Project started by David Evans in 2005