VISU - PHP Game Framework

TransformOrientationAnimation extends BaseAnimation
in package

Animation that rotates an object with a given orientation

Table of Contents

Properties

$currentDelayTick  : int
$currentTick  : int
$duration  : int
$easingType  : AnimationEasingType|null
$finished  : bool
$initialDelay  : int|null
$initialOrientation  : Quat|null
$modifier  : Quat
$progress  : float
$repeat  : bool|null
$repeatCount  : int|null
$repeatDelay  : int|null
$repeatedCount  : int
$requiredDelayTicks  : int
$requiredTicks  : int
$reverse  : bool|null
$reverseCount  : int|null
$reversedCount  : int
$reverseDelay  : int|null
$reversing  : bool
$runCount  : int
$running  : bool
$tag  : int|null
$targetOrientation  : Quat|null
$waiting  : bool

Methods

__construct()  : mixed
fromCurrentAndTargetOrientation()  : static
Creates a new animation from the current and target orientation

Properties

Methods

__construct()

public __construct(Quat $modifier, int $duration[, AnimationEasingType|null $easingType = AnimationEasingType::LINEAR ][, int|null $initialDelay = 0 ][, bool $repeat = false ][, int|null $repeatCount = 0 ][, int|null $repeatDelay = 0 ][, bool $reverse = false ][, int|null $reverseCount = 0 ][, int|null $reverseDelay = 0 ][, int|null $tag = null ]) : mixed
Parameters
$modifier : Quat

The orientation to apply

$duration : int

The duration of the animation in milliseconds

$easingType : AnimationEasingType|null = AnimationEasingType::LINEAR

The easing type

$initialDelay : int|null = 0

The initial delay in milliseconds

$repeat : bool = false

Whether the animation should repeat

$repeatCount : int|null = 0

The number of times the animation should repeat

$repeatDelay : int|null = 0

The delay between each repeat in milliseconds

$reverse : bool = false

Whether the animation should reverse

$reverseCount : int|null = 0

The number of times the animation should reverse

$reverseDelay : int|null = 0

The delay between each reverse in milliseconds

$tag : int|null = null

The tag of the animation

fromCurrentAndTargetOrientation()

Creates a new animation from the current and target orientation

public static fromCurrentAndTargetOrientation(Quat $currentOrientation, Quat $targetOrientation, int $duration) : static
Parameters
$currentOrientation : Quat
$targetOrientation : Quat
$duration : int
Return values
static

        
On this page

Search results