Terrain Processor: Line: Nodes Objects

From Bohemia Interactive Community
Revision as of 14:35, 9 August 2015 by Tom 48 97 (talk | contribs) (Created page with "Line {{TerrainProcessorManual|Line: Nodes Objects|BITasksPlugin.dll|Polyline, PolylineM, PolylineZ|No|= |DESCRIPTION=Method puts objects...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Task details

Task name : Line: Nodes Objects

Dll plugin name : BITasksPlugin.dll

Geometry type : Polyline, PolylineM, PolylineZ

Heightmap : No

Description

Method puts objects on polylines nodes with forward rotation.

Task parameters

  • PROBABILITY - Probability of object occurence on polyline node in %. 0% - never, 100% - always

Object prototype parameters

  • OBJECT - Object's prototype name
  • PROB - Object's probability
  • MINHEIGHT - Minimal size in %
  • MAXHEIGHT - Maximal size in %
  • ROTATION - Rotation offset in °

Usage

You may create polylines of powerlines with node on each pole, and use this module to place the poles with correct rotation.

Algorithm

For each shape (linear) do :

  1. For each node on polyline do :
    1. Compute right forward rotation
    2. Add object prototype