Class TCastlePlane
Unit
Declaration
type TCastlePlane = class(TCastleAbstractPrimitive)
Description
Plane with configurable size, position and material.
The plane is actually just a rectangle with specified Size. It is centered around the point (0,0,0).
The plane is parallel to the given Axis, by default the Axis is 1 (Y) – which means that the plane acts like a floor in a typical 3D setup. If you want a rectangle visible in typical 2D setup (where X goes to the right, Y goes up), change the Axis to 2 (Z).
You can translate, rotate, scale the plane freely, as it is a TCastleTransform, and can be a child of other TCastleTransform instances too.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleTransform
- TCastleAbstractPrimitive
- TCastlePlane
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Size: TVector2 read FSize write SetSize; |
|
property Axis: T3DAxis read FAxis write SetAxis default 1; |
|
property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false; |
|
property SizePersistent: TCastleVector2Persistent read FSizePersistent ; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
Properties
property Size: TVector2 read FSize write SetSize; |
|
Size of the plane. By default (2, 2). The coordinates affected by this property depend on current Axis value. That is: |
property Axis: T3DAxis read FAxis write SetAxis default 1; |
|
|
property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false; |
|
When this is |
property SizePersistent: TCastleVector2Persistent read FSizePersistent ; |
|
Size that can be visually edited in Castle Game Engine Editor, Lazarus and Delphi. Normal user code does not need to deal with this, instead read or write Size directly. See also
|
Generated by PasDoc 0.16.0.