Description | Hierarchy | Fields | Methods | Properties |
type TPhysicalSprite = class(TImageSpriteEx)
A sprite in the physical world. Don't use this sprite directly. Use e.g. TPhysicalBoxSprite or create a child class and override InitializeShape
![]() |
Construct:TPhysicalConstruct; |
![]() |
Typ:TPhysicalSpriteTyp; |
![]() |
constructor Create(AParent:TSprite); override; |
![]() |
destructor Destroy; override; |
![]() |
procedure InitializeShape; virtual; |
![]() |
procedure ActivateNeighbours; |
![]() |
property Active: boolean read GetActive write SetActive; |
![]() |
property ContinousActive: boolean read GetContinousActive write SetContinousActive; |
![]() |
property Mass: single read FMass write FMass; |
![]() |
property Velocity: TAdVector3 read GetVelocity write SetVelocity; |
![]() |
property Omega: TAdVector3 read GetOmega write SetOmega; |
![]() |
Construct:TPhysicalConstruct; |
The creator of the physical form |
![]() |
Typ:TPhysicalSpriteTyp; |
The typ of the sprite |
![]() |
constructor Create(AParent:TSprite); override; |
Creates an instance of the sprite |
![]() |
destructor Destroy; override; |
Destroys the instance |
![]() |
procedure InitializeShape; virtual; |
Frees the old construct if neccesary and waits for a child class to create the construct. |
![]() |
procedure ActivateNeighbours; |
Wakes its neighbours up if they snooze at the moment. |
![]() |
property Active: boolean read GetActive write SetActive; |
Sets the Sprite to the sleep modus (false) or wakes it up (true). |
![]() |
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 |
![]() |
property Mass: single read FMass write FMass; |
The mass of the sprite |
![]() |
property Velocity: TAdVector3 read GetVelocity write SetVelocity; |
Linear Velocity |
![]() |
property Omega: TAdVector3 read GetOmega write SetOmega; |
Angulaer Velocity |