Drag[en]gine Script Module DragonScript
1.23
|
Animate camera for interactive main menu. More...
Public Member Functions | |
IMMCameraSpot | getCurSpot () |
Current camera spot. More... | |
float | getElapsed () |
Elapsed transition time. More... | |
InteractiveMainMenu | getMainMenu () |
Interactive main menu. More... | |
IMMCameraSpot | getTargetSpot () |
Camera spot to transition to or null. More... | |
float | getTransitionTime () |
Transition time. More... | |
bool | inTransition () |
Camera is in transition. More... | |
IMMAnimateCamera | new (InteractiveMainMenu mainMenu) |
Create animate camera for interactive main menu. More... | |
void | setCurSpot (IMMCameraSpot spot) |
Set current camera spot. More... | |
void | transitionTo (IMMCameraSpot spot, float transitionTime) |
Transition to camera spot. More... | |
void | update (float elapsed) |
Update camera. More... | |
Protected Member Functions | |
void | updateCamera () |
Update camera. More... | |
Animate camera for interactive main menu.
Animates camera between positions using a smooth interpolation. This gives a slow in/out acceleration for a transition going easy on the eye.
IMMCameraSpot Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getCurSpot | ( | ) |
Current camera spot.
float Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getElapsed | ( | ) |
Elapsed transition time.
InteractiveMainMenu Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getMainMenu | ( | ) |
Interactive main menu.
IMMCameraSpot Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getTargetSpot | ( | ) |
Camera spot to transition to or null.
float Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getTransitionTime | ( | ) |
Transition time.
bool Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.inTransition | ( | ) |
Camera is in transition.
IMMAnimateCamera Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.new | ( | InteractiveMainMenu | mainMenu | ) |
Create animate camera for interactive main menu.
void Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.setCurSpot | ( | IMMCameraSpot | spot | ) |
Set current camera spot.
Stops transition if running and clears target.
void Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.transitionTo | ( | IMMCameraSpot | spot, |
float | transitionTime | ||
) |
Transition to camera spot.
Starts transition if current spot is not null. If current spot is null sets target as current camera instead immediatly.
void Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.update | ( | float | elapsed | ) |
Update camera.
|
protected |
Update camera.