Class TPhysicalApplication

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPhysicalApplication = class(TSprite)

Description

A sprite which represents the physics engine.

Hierarchy

Overview

Fields

Public NewtonWorld:PNewtonWorld;

Methods

Public constructor Create(AParent:TSprite); override;
Public destructor Destroy; override;
Public procedure CheckBounds;

Properties

Public property Active: boolean read FActive write FActive;
Public property Interval: single read FInterval write FInterval;
Public property MinFrameRate: integer read FMinFrameRate write FMinFrameRate;
Public property SolverModel: TNewtonSolverModel read FSolverModel write SetSolverModel;

Description

Fields

Public NewtonWorld:PNewtonWorld;

A pointer to newtons world

Methods

Public constructor Create(AParent:TSprite); override;

Creates an instance of TPysicalApplication in the SpriteEngine

Public destructor Destroy; override;

Destroys the instance

Public procedure CheckBounds;

Checks the bounds of the sprite world and expands is if neccesary

Properties

Public property Active: boolean read FActive write FActive;

Sets wether the simulation is active or not

Public property Interval: single read FInterval write FInterval;

The interval of simulation in ms. Default is 10ms –> 100FPS.

Public property MinFrameRate: integer read FMinFrameRate write FMinFrameRate;

If the framerate is lower than this value the simulation is paused.

Public property SolverModel: TNewtonSolverModel read FSolverModel write SetSolverModel;

Sets the solver model. Have a look on the description of TNewtonSolverModel

SourceForge.net Logo


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