Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera Class Reference

Animate camera for interactive main menu. More...

Inheritance diagram for Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera:

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...
 

Detailed Description

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.

Member Function Documentation

◆ getCurSpot()

IMMCameraSpot Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getCurSpot ( )

Current camera spot.

◆ getElapsed()

float Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getElapsed ( )

Elapsed transition time.

◆ getMainMenu()

InteractiveMainMenu Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getMainMenu ( )

Interactive main menu.

◆ getTargetSpot()

IMMCameraSpot Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getTargetSpot ( )

Camera spot to transition to or null.

◆ getTransitionTime()

float Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.getTransitionTime ( )

Transition time.

◆ inTransition()

bool Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.inTransition ( )

Camera is in transition.

◆ new()

IMMAnimateCamera Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.new ( InteractiveMainMenu  mainMenu)

Create animate camera for interactive main menu.

◆ setCurSpot()

void Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.setCurSpot ( IMMCameraSpot  spot)

Set current camera spot.

Stops transition if running and clears target.

◆ transitionTo()

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.

◆ update()

void Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.update ( float  elapsed)

Update camera.

◆ updateCamera()

void Dragengine.Gui.MainMenus.Interactive.IMMAnimateCamera.updateCamera ( )
protected

Update camera.


The documentation for this class was generated from the following file: