Torque 3D - Script Manual: Foliage

TorqueScript

Main   Class List   Namespace List   Online

Foliage
[Environment Objects]

Objects used for mass replication of foliage, such as grass, rocks, and bushes. More...

Classes

class  fxFoliageReplicator
 An emitter to replicate fxFoliageItem objects across an area. More...
class  fxShapeReplicatedStatic
 The object definition for shapes that will be replicated across an area using an fxShapeReplicator. More...
class  fxShapeReplicator
 An emitter for objects to replicate across an area. More...
class  GroundCover
 Covers the ground in a field of objects (IE: Grass, Flowers, etc). More...

Functions

void StartClientReplication ()
 Activates the shape replicator.
void StartFoliageReplication ()
 Activates the foliage replicator.

Variables

float $pref::GroundCover::densityScale
 A global LOD scalar which can reduce the overall density of placed GroundCover.
static int GroundCover::renderedBatches
 Stat for number of rendered billboard batches.
static int GroundCover::renderedBillboards
 Stat for number of rendered billboards.
static int GroundCover::renderedCells
 Stat for number of rendered cells.
static int GroundCover::renderedShapes
 Stat for number of rendered shapes.

Detailed Description

Objects used for mass replication of foliage, such as grass, rocks, and bushes.


Function Documentation

void StartClientReplication (  ) 

Activates the shape replicator.

Example:
// Call the function
StartClientReplication()
void StartFoliageReplication (  ) 

Activates the foliage replicator.

Example:
// Call the function
StartFoliageReplication();

Variable Documentation

float $pref::GroundCover::densityScale

A global LOD scalar which can reduce the overall density of placed GroundCover.

int GroundCover::renderedBatches [static, inherited]

Stat for number of rendered billboard batches.

int GroundCover::renderedBillboards [static, inherited]

Stat for number of rendered billboards.

int GroundCover::renderedCells [static, inherited]

Stat for number of rendered cells.

int GroundCover::renderedShapes [static, inherited]

Stat for number of rendered shapes.



Copyright © GarageGames, LLC. All Rights Reserved.