/
HeightMapShape.hx
54 lines (43 loc) · 1.41 KB
/
HeightMapShape.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
Height map shape resource, which can be added to a `godot.PhysicsBody` or `godot.Area`.
**/
@:libType
@:csNative
@:native("Godot.HeightMapShape")
@:autoBuild(godot.Godot.buildUserClass())
extern class HeightMapShape extends godot.Shape {
/**
Height map data, pool array must be of `godot.HeightMapShape.mapWidth` * `godot.HeightMapShape.mapDepth` size.
**/
@:native("MapData")
public var mapData:cs.NativeArray<Single>;
/**
Number of vertices in the depth of the height map. Changing this will resize the `godot.HeightMapShape.mapData`.
**/
@:native("MapDepth")
public var mapDepth:Int;
/**
Number of vertices in the width of the height map. Changing this will resize the `godot.HeightMapShape.mapData`.
**/
@:native("MapWidth")
public var mapWidth:Int;
@:native("new")
public function new():Void;
@:native("SetMapWidth")
public function setMapWidth(width:Int):Void;
@:native("GetMapWidth")
public function getMapWidth():Int;
@:native("SetMapDepth")
public function setMapDepth(height:Int):Void;
@:native("GetMapDepth")
public function getMapDepth():Int;
@:native("SetMapData")
public function setMapData(data:HaxeArray<Single>):Void;
public extern inline function getMapData():std.Array<Single> {
return cs.Lib.array(cs.Syntax.code("{0}.GetMapData()", this));
}
}