Category: Landscape
/ Material
Since engine version: 5.1 OC
InsertMaterial
Description
Inserts a material pixel at the given position and given speed.
Syntax
bool InsertMaterial(int material_index, int x, int y, int xdir, int ydir);
Parameters
- material_index:
- Material to be inserted (see Material()).
- x:
- [opt] X insert position or offset
- y:
- [opt] Y insert position or offset
- xdir:
- [opt] horizontal speed of material pixel to be inserted
- ydir:
- [opt] vertical speed of material pixel to be inserted
See also: Material


