CAST II Game Engine

   DESCRIPTION       FEATURES       SCREENSHOTS       FORUMS       DOCUMENTATION       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TProcessing

Unit

Cast2

Declaration

type TProcessing = class(TBaseProcessing)

Description

Base class of all processing objects

Hierarchy

TBaseProcessing > TItem > TBaseItem

Fields

 NameDescription
PublicBoundingBoxReturns bounding box of the item
PublicCollidingContains information about bounding volumes of the item which will be used for collision tests
ProtectedFLocationCurrent location of the item
ProtectedFOrientationCurrent orientation of the item
ProtectedFScaleCurrent scale of the item
ProtectedFTransformTransformation matrix of the item

Methods

Overview

Publicconstructor Create(AManager: TItemsManager); override;
Publicdestructor Destroy; override;
Publicprocedure AddProperties(const Result: Props.TProperties); override;
Protectedprocedure ComputeTransform; virtual;
Publicfunction GetAbsLocation: TVector3s;
Publicfunction GetAbsOrientation: TQuaternion;
Protectedprocedure InvalidateTransform; virtual;
Publicprocedure OnCollision(Item: TProcessing; const ColRes: Collisions.TCollisionResult); virtual;
Protectedfunction SetChild(Index: Integer; AItem: BaseClasses.TItem): BaseClasses.TItem; override;
Publicprocedure SetProperties(Properties: Props.TProperties); override;

Description

Publicconstructor Create(AManager: TItemsManager); override;

FullBoundingBox: Base3D.TBoundingBox;

Publicdestructor Destroy; override;

 

Publicprocedure AddProperties(const Result: Props.TProperties); override;

This procedure is called (by editor for example) to retrieve a list of item's properties and their values. Any TItem descendant class should override this method in order to add its own properties.

Protectedprocedure ComputeTransform; virtual;

In CAST II engine a lazy evaluation scheme used for transformation computations. This method will compute current transformation matrix when and only when it is necessary.

Publicfunction GetAbsLocation: TVector3s;

Returns position of the item in world's coordinate space

Publicfunction GetAbsOrientation: TQuaternion;

Returns orientation of the item in world's coordinate space

Protectedprocedure InvalidateTransform; virtual;

Calling this method will tell the engine that FTransform became invalid and should be recomputed before next use

Publicprocedure OnCollision(Item: TProcessing; const ColRes: Collisions.TCollisionResult); virtual;

Called when a collision of the item with another items was detected

Protectedfunction SetChild(Index: Integer; AItem: BaseClasses.TItem): BaseClasses.TItem; override;

Returns AItem if OK or nil if index is invalid or impossible to set a child

Publicprocedure SetProperties(Properties: Props.TProperties); override;

This procedure is called (by editor for example) to set values of item's properties. Any TItem descendant class should override this method to allow its own properties to be set.

Properties

Overview

Publicproperty BoundingSphereRadius: Single;
Publicproperty Dimensions: TVector3s;
Publicproperty ForwardVector: TVector3s;
Publicproperty Location: TVector4s;
Publicproperty Orientation: TQuaternion;
Publicproperty Position: TVector3s;
Publicproperty RightVector: TVector3s;
Publicproperty Scale: TVector3s;
Publicproperty Transform: TMatrix4s;
Publicproperty UpVector: TVector3s;

Description

Publicproperty BoundingSphereRadius: Single;

The item's bounding sphere radius based on Dimensions

Publicproperty Dimensions: TVector3s;

Dimensions of the item based on its bounding box (see BoundingBox)

Publicproperty ForwardVector: TVector3s;

Forward direction for the item

Publicproperty Location: TVector4s;

4-component position of the item within parent's coordinate space

Publicproperty Orientation: TQuaternion;

Orientation of the item within parent's coordinate space

Publicproperty Position: TVector3s;

Position of the item within parent's coordinate space

Publicproperty RightVector: TVector3s;

Right direction for the item

Publicproperty Scale: TVector3s;

Scale of the item within parent's coordinate space

Publicproperty Transform: TMatrix4s;

Transformation matrix of the item

Publicproperty UpVector: TVector3s;

Up direction for the item

Last modified: 4 Jul, 2008
Copyright (C) 2006-2008, casteng.com