Class TSceneNodeAnimator

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSceneNodeAnimator = class(TAttributeExchangingObject, IEventReceiver)

Description

Animates a scene node. Can animate position, rotation, material, and so on.
A scene node animator is able to animate a scene node in a very simple way. It may change its position, rotation, scale and/or material. There are lots of animators to choose from. You can create scene node animators with the ISceneManager interface.

Hierarchy

Overview

Methods

Public function Clone(Node: TWrapper; SceneManager: TWrapper): TSceneNodeAnimator; inline;
Public function HandleEvent(Event: TIrrlichtEvent): Boolean; virtual;
Public function HasFinished: Boolean; inline;
Public function IsEventReceiverEnabled: Boolean; inline;
Public procedure AnimateNode(Node: TWrapper; TimeMs: LongWord); inline;

Properties

Public property AnimatorType: TSceneNodeAnimatorType read GetType;

Description

Methods

Public function Clone(Node: TWrapper; SceneManager: TWrapper): TSceneNodeAnimator; inline;

Creates a clone of this animator.
Please note that you will have to drop (TReferenceCounted.Drop()) the returned pointer after calling this.

Public function HandleEvent(Event: TIrrlichtEvent): Boolean; virtual;
 
Public function HasFinished: Boolean; inline;

Returns if the animator has finished.
This is only valid for non-looping animators with a discrete end state.

Public function IsEventReceiverEnabled: Boolean; inline;

Returns true if this animator receives events.
When attached to an active camera, this animator will be able to respond to events such as mouse and keyboard events.

Public procedure AnimateNode(Node: TWrapper; TimeMs: LongWord); inline;

Animates a scene node.

Parameters
Node
Node to animate, must be a subtype of TSceneNode.
TimeMs
Current time in milliseconds.

Properties

Public property AnimatorType: TSceneNodeAnimatorType read GetType;
 

Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22