Class TCollisionCallback

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCollisionCallback = class(TWrapper)

Description

Callback interface for catching events of collisions. Derive this class and use TSceneNodeAnimatorCollisionResponse.SetCollisionCallback to be able to be notified if a collision has occurred.

Hierarchy

Overview

Methods

Public constructor Create(NSceneManager: TReferenceCounted);
Public destructor Destroy; override;
Public function HandleCollision(Animator: TSceneNodeAnimatorCollisionResponse): Boolean; virtual; abstract;

Properties

Public property SceneManager: TReferenceCounted read FSceneManager;

Description

Methods

Public constructor Create(NSceneManager: TReferenceCounted);

Constructor.

Public destructor Destroy; override;

Destructor.

Public function HandleCollision(Animator: TSceneNodeAnimatorCollisionResponse): Boolean; virtual; abstract;

Will be called when a collision occurrs.
See TSceneNodeAnimatorCollisionResponse.SetCollisionCallback for more information.

Parameters
Animator
Collision response animator in which the collision occurred. You can call this animator's methods to find the node, collisionPoint and/or collision triangle.
Returns

True if the collision was handled in the animator. In this case, the animator's target node will *not* be stopped at the collision point, but will instead move fully to the location that triggered the collision check.
False if the collision was not handled in the animator. The animator's target node will be moved to the collision position.

Properties

Public property SceneManager: TReferenceCounted read FSceneManager;

The owning scene manager.


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