Class TCastleSphere
Unit
CastleScene
Declaration
type TCastleSphere = class(TCastleAbstractPrimitive)
Description
Sphere with configurable size, position and material.
Hierarchy
Overview
Methods
Properties
|
property Radius: Single read FRadius write SetRadius default 1; |
|
property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false; |
|
property CollisionSphereRadius stored false; |
|
property Slices: Cardinal read FSlices write SetSlices default 0; |
|
property Stacks: Cardinal read FStacks write SetStacks default 0; |
Description
Methods
|
constructor Create(AOwner: TComponent); override; |
This item has no description. |
|
destructor Destroy; override; |
This item has no description. |
Properties
|
property Radius: Single read FRadius write SetRadius default 1; |
Sphere radius.
|
|
property DoubleSided: Boolean read FDoubleSided write SetDoubleSided default false; |
When this is True , the object is visible (and lit) from both sides.
|
|
property CollisionSphereRadius stored false; |
CollisionSphereRadius is always derived from Radius for this component.
|
|
property Slices: Cardinal read FSlices write SetSlices default 0; |
How many "slices " to use to approximate the sphere. The sphere is rendered using polygons (triangles and quads) that approximate the sphere shape. The more slices , the more the sphere will look like a sphere.
Slices divide the objects like slices of a pizza.
The default value of 0 means to follow global variable DefaultTriangulationSlices.
|
|
property Stacks: Cardinal read FStacks write SetStacks default 0; |
How many "stacks " to use to approximate the sphere. The sphere is rendered using polygons (triangles and quads) that approximate the sphere shape. The more stacks , the more the sphere will look like a sphere.
Stacks divide the objects like stacks of a tower.
The default value of 0 means to follow global variable DefaultTriangulationStacks.
|
Generated by PasDoc 0.16.0-snapshot.