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.

Source: scene/castlescene_plane.inc (line 32).

Hierarchy


Generated by PasDoc 0.17.0.snapshot.