Class TCastlePlane

Unit

Declaration

type TCastlePlane = class(TCastleAbstractPrimitive)

Description

Plane with configurable size, position and material.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property Size: TVector2 read FSize write SetSize;
Published property Axis: T3DAxis read FAxis write SetAxis default 1;
Published property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false;
Published property SizePersistent: TCastleVector2Persistent read FSizePersistent ;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function PropertySections(const PropertyName: String): TPropertySections; override;
 

Properties

Public property Size: TVector2 read FSize write SetSize;

Size of the plane in XZ plane. By default (2, 2).

Published property Axis: T3DAxis read FAxis write SetAxis default 1;

Axis where the plane is constant. That is:

  • Axis = 0 means the plane is in YZ (at constant X = 0).

  • Axis = 1 means the plane is in XZ (at constant Y = 0). In particular useful for floors in 3D games.

  • Axis = 2 means the plane is in XY (at constant Z = 0). In particular useful for rectangles in 2D games.

Published property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false;

When this is True, the object is visible (and lit) from both sides.

Published 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
Size
Size of the plane in XZ plane.

Generated by PasDoc 0.16.0.