Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
OrbitCamera Class Reference

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.
 
- Public Member Functions inherited from ActionCamera
 ActionCamera ()
 @js ctor @lua new
 
virtual ~ActionCamera ()
 @js NA @lua NA
 
- Public Member Functions inherited from ActionInterval
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 OrbitCameracreate (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.
 

Detailed Description

OrbitCamera action.

Orbits the camera around the center of the screen using spherical coordinates.

Member Function Documentation

◆ create()

static OrbitCamera * create ( float t,
float radius,
float deltaRadius,
float angleZ,
float deltaAngleZ,
float angleX,
float deltaAngleX )
static

Creates a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX.

Parameters
tDuration in seconds.
radiusThe start radius.
deltaRadiusThe delta radius.
angleZThe start angle in Z.
deltaAngleZThe delta angle in Z.
angleXThe start angle in X.
deltaAngleXThe delta angle in X.
Returns
An OrbitCamera.

◆ sphericalRadius()

void sphericalRadius ( float * r,
float * zenith,
float * azimuth )

Positions the camera according to spherical coordinates.

Parameters
rThe spherical radius.
zenithThe spherical zenith.
azimuthThe spherical azimuth.

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