Class TCastleBox

Unit

Declaration

type TCastleBox = class(TCastleAbstractPrimitive)

Description

Box with configurable size, position and material.

Source: src/scene/castlescene_box.inc (line 21).

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: TVector3 read FSize write SetSize;
Published property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false;
Published property SizePersistent: TCastleVector3Persistent read FSizePersistent ;

Description

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Source: src/scene/castlescene_box.inc (line 29).

Public destructor Destroy; override;

This item has no description.

Source: src/scene/castlescene_box.inc (line 30).

Public function PropertySections(const PropertyName: String): TPropertySections; override;

This item has no description. Showing description inherited from TCastleComponent.PropertySections.

Section where to show property in the editor.

Source: src/scene/castlescene_box.inc (line 31).

Properties

Public property Size: TVector3 read FSize write SetSize;

Size of the box in 3D. By default (2, 2, 2).

Source: src/scene/castlescene_box.inc (line 34).

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

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

Source: src/scene/castlescene_box.inc (line 40).

Published property SizePersistent: TCastleVector3Persistent 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 box in 3D.

Source: src/scene/auto_generated_persistent_vectors/tcastlebox_persistent_vectors.inc (line 37).


Generated by PasDoc 0.17.0.snapshot.