⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-84160d4
Loading...
Searching...
No Matches
SkewTo Class Reference

Skews a Node object to given angles by modifying it's skewX and skewY attributes. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Inherited by SkewBy.

Public Member Functions

void update (float time) override
bool initWithDuration (float t, float sx, float sy)
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.
void step (float dt) override
bool initWithDuration (float d)
 initializes the action

Static Public Member Functions

static SkewTocreate (float t, float sx, float sy)
 Creates the action.

Detailed Description

Skews a Node object to given angles by modifying it's skewX and skewY attributes.

Since
v1.0

Member Function Documentation

◆ create()

SkewTo * create ( float t,
float sx,
float sy )
static

Creates the action.

Parameters
tDuration time, in seconds.
sxSkew x angle.
sySkew y angle.
Returns
An autoreleased SkewTo object.

◆ update()

void update ( float time)
override
Parameters
timeIn seconds.

◆ initWithDuration()

bool initWithDuration ( float t,
float sx,
float sy )
Parameters
tIn seconds.

The documentation for this class was generated from the following file:
  • ActionInterval.h