Description | Hierarchy | Fields | Methods | Properties |
type TPhysicalApplication = class(TSprite)
A sprite which represents the physics engine.
![]() |
NewtonWorld:PNewtonWorld; |
![]() |
constructor Create(AParent:TSprite); override; |
![]() |
destructor Destroy; override; |
![]() |
procedure CheckBounds; |
![]() |
property Active: boolean read FActive write FActive; |
![]() |
property Interval: single read FInterval write FInterval; |
![]() |
property MinFrameRate: integer read FMinFrameRate write FMinFrameRate; |
![]() |
property SolverModel: TNewtonSolverModel read FSolverModel write SetSolverModel; |
![]() |
NewtonWorld:PNewtonWorld; |
A pointer to newtons world |
![]() |
constructor Create(AParent:TSprite); override; |
Creates an instance of TPysicalApplication in the SpriteEngine |
![]() |
destructor Destroy; override; |
Destroys the instance |
![]() |
procedure CheckBounds; |
Checks the bounds of the sprite world and expands is if neccesary |
![]() |
property Active: boolean read FActive write FActive; |
Sets wether the simulation is active or not |
![]() |
property Interval: single read FInterval write FInterval; |
The interval of simulation in ms. Default is 10ms –> 100FPS. |
![]() |
property MinFrameRate: integer read FMinFrameRate write FMinFrameRate; |
If the framerate is lower than this value the simulation is paused. |
![]() |
property SolverModel: TNewtonSolverModel read FSolverModel write SetSolverModel; |
Sets the solver model. Have a look on the description of TNewtonSolverModel |