Class TCastleBillboard
Unit
Declaration
type TCastleBillboard = class(TCastleBehavior)
Description
Behavior to make parent TCastleTransform a billboard, that always rotates to face the current camera.
The front of the parent, that always turns to the camera, is determined by the TCastleTransform.Orientation, which in turn by default is taken from TCastleTransform.DefaultOrientation, which by default just means "positive Z axis" (otUpYDirectionZ). The idea is that TCastleTransform.Direction is updated to point toward the camera.
The axis around which billboard rotates is determined by AxisOfRotation. When non-zero, this axis is set as TCastleTransform.Up.
Source: transform/castlebehaviors_billboard.inc (line 32).
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleBehavior
- TCastleBillboard
Generated by PasDoc 0.17.0.snapshot.