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
init()
Initializes the required textures, objects, and important variables.
- Source:
initMovement()
Initializes the movement of the wings, defining constants and relevant 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 |