InsertMaterial

Kategorie: Landschaft / Material
Ab Engineversion: 5.1 OC

Beschreibung

Fügt ein Materialpixel an der angegebenen Position in der angegebenen Geschwindigkeit ein.

Syntax

bool InsertMaterial(int material_index, int x, int y, int xdir, int ydir, proplist out_insertpos);

Parameter

material_index:
Einzufügendes Material (siehe Material())
x:
[opt] X-Einfügeposition/-offset
y:
[opt] Y-Einfügeposition/-offset
xdir:
[opt] X-Geschwindigkeit des eingefügten Mateiralpixels
ydir:
[opt] Y-Geschwindigkeit des eingefügten Mateiralpixels
out_insertpos:
[opt] If a writeable proplist is passed, members x and y are filled with the actual insertion position.

Anmerkung

If the target position already contains material of the same density as the inserted material, the engine will search upwards for a proper insertion position.
Siehe auch: Material
Sven2, 2001-11