MyWingsManager

MyWingsManager

Represents the MyVehicle wing manager [MyWing].

Constructor

new MyWingsManager(scene, material)

Instantiates a new wings manager class.
Source:
Parameters:
Name Type Description
scene CGFscene the scene
material CGFappearance the material to apply to the wings

Methods

display()

Displays all the wings.
Source:

init()

Initializes the required textures, objects, and important variables.
Source:

initMovement()

Initializes the movement of the wings, defining constants and relevant variables.
Source:

initTextures()

Initializes the required textures.
Source:

reset()

Resets the movement variables.
Source:

update(elapsed, turningValue)

Updates the movement variables according to the elapsed time.
Source:
Parameters:
Name Type Description
elapsed integer the elapsed time since the last update
turningValue integer the turning multiplier