Axmol Engine 2.4.0-258ceca
|
OrbitCamera action. More...
#include <ActionCamera.h>
Inherits ActionCamera.
Public Member Functions | |
void | sphericalRadius (float *r, float *zenith, float *azimuth) |
Positions the camera according to spherical coordinates. | |
OrbitCamera () | |
@js ctor | |
virtual | ~OrbitCamera () |
@js NA @lua NA | |
bool | initWithDuration (float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX) |
Initializes a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX. | |
![]() | |
ActionCamera () | |
@js ctor @lua new | |
virtual | ~ActionCamera () |
@js NA @lua NA | |
![]() | |
float | getElapsed () |
How many seconds had elapsed since the actions started to run. | |
void | setAmplitudeRate (float amp) |
Sets the amplitude rate, extension in GridAction. | |
float | getAmplitudeRate () |
Gets the amplitude rate, extension in GridAction. | |
virtual void | step (float dt) override |
bool | initWithDuration (float d) |
initializes the action | |
Static Public Member Functions | |
static OrbitCamera * | create (float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX) |
Creates a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX. | |
OrbitCamera action.
Orbits the camera around the center of the screen using spherical coordinates.
|
static |
Creates a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX.
t | Duration in seconds. |
radius | The start radius. |
deltaRadius | The delta radius. |
angleZ | The start angle in Z. |
deltaAngleZ | The delta angle in Z. |
angleX | The start angle in X. |
deltaAngleX | The delta angle in X. |
void sphericalRadius | ( | float * | r, |
float * | zenith, | ||
float * | azimuth ) |
Positions the camera according to spherical coordinates.
r | The spherical radius. |
zenith | The spherical zenith. |
azimuth | The spherical azimuth. |