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.

Racing Car movement sample

Creation
 
Movement_CarCreates a new Racing Car movement object
Class Functions
 
Speed
SetMaxSpeedChange the maximum speed of the object
GetMaxSpeedReturns the maximum speed of the object
SelectMaxSpeedSelects objects based on their maximum speed
SetAccelerationChange the acceleration of the object
GetAccelerationReturns the acceleration of the object
SelectAccelerationSelects objects based on their acceleration
SetDecelerationChange the deceleration of the object
GetDecelerationReturns the deceleration of the object
SelectDecelerationSelects objects based on their deceleration
SetRotationSpeedChange the rotation speed of the object
GetRotationSpeedReturns the rotation speed of the object
SelectRotationSpeedSelects objects based on their rotation speed
Reversing
SetAllowReverseAllows / disallows the object to reverse when down is pressed
GetAllowReverseChecks if the object is allowed to reverse
SelectAllowReverseSelects objects based on their ability to reverse
Instance Functions
 
Speed
SetMaxSpeedChange the maximum speed of the object
GetMaxSpeedReturns the maximum speed of the object
SetAccelerationChange the acceleration of the object
GetAccelerationReturns the acceleration of the object
SetDecelerationChange the deceleration of the object
GetDecelerationReturns the deceleration of the object
SetRotationSpeedChange the rotation speed of the object
GetRotationSpeedReturns the rotation speed of the object
Gravity
SetAllowReverseAllows / disallows the object to reverse when down is pressed
GetAllowReverseChecks if the object is allowed to reverse



JAM © 2005 no one in particular
Project started by David Evans in 2005