Class TTerrainCasScript
Unit
Declaration
type TTerrainCasScript = class(TCastleTerrainData)
Description
Warning: this symbol is deprecated: using CastleScript to define terrain is deprecated due to low usage
Terrain (height for each X, Y) data calculated from CastleScript expression. At construction, pass FunctionExpression, that is CastleScript language expression calculating height based on X, Y.
See https://castle-engine.io/castle_script.php for CastleScript syntax. Try e.g. function like
- sin(x) + sin(y)
- Sum sinusoides of various frequencies and amplitudes:
(sin(x) + sin(x*2) / 2 + sin(x*4) / 4) * (sin(y) + sin(y*2) / 2 + sin(y*4) / 4)
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleTerrainData
- TTerrainCasScript
Overview
Methods
constructor Create(const FunctionExpression: String); reintroduce; |
|
destructor Destroy; override; |
|
function Height(const Coord, TexCoord: TVector2): Single; override; |
Description
Methods
constructor Create(const FunctionExpression: String); reintroduce; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function Height(const Coord, TexCoord: TVector2): Single; override; |
|
This item has no description. Showing description inherited from TCastleTerrainData.Height. Return height for given terrain point.
|
Generated by PasDoc 0.16.0-snapshot.