Class TPhysicalSprite

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPhysicalSprite = class(TImageSpriteEx)

Description

A sprite in the physical world. Don't use this sprite directly. Use e.g. TPhysicalBoxSprite or create a child class and override InitializeShape

Hierarchy

Overview

Fields

Public Construct:TPhysicalConstruct;
Public Typ:TPhysicalSpriteTyp;

Methods

Public constructor Create(AParent:TSprite); override;
Public destructor Destroy; override;
Public procedure InitializeShape; virtual;
Public procedure ActivateNeighbours;

Properties

Public property Active: boolean read GetActive write SetActive;
Public property ContinousActive: boolean read GetContinousActive write SetContinousActive;
Public property Mass: single read FMass write FMass;
Public property Velocity: TAdVector3 read GetVelocity write SetVelocity;
Public property Omega: TAdVector3 read GetOmega write SetOmega;

Description

Fields

Public Construct:TPhysicalConstruct;

The creator of the physical form

Public Typ:TPhysicalSpriteTyp;

The typ of the sprite

Methods

Public constructor Create(AParent:TSprite); override;

Creates an instance of the sprite

Public destructor Destroy; override;

Destroys the instance

Public procedure InitializeShape; virtual;

Frees the old construct if neccesary and waits for a child class to create the construct.

Public procedure ActivateNeighbours;

Wakes its neighbours up if they snooze at the moment.

Properties

Public property Active: boolean read GetActive write SetActive;

Sets the Sprite to the sleep modus (false) or wakes it up (true).

Public property ContinousActive: boolean read GetContinousActive write SetContinousActive;

Sets wether the sprite doesn't snooze. TRUE brings higher accuracy but it needs a lot of performance

Public property Mass: single read FMass write FMass;

The mass of the sprite

Public property Velocity: TAdVector3 read GetVelocity write SetVelocity;

Linear Velocity

Public property Omega: TAdVector3 read GetOmega write SetOmega;

Angulaer Velocity

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00