/
World.hx
68 lines (54 loc) · 1.81 KB
/
World.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
Class that has everything pertaining to a world. A physics space, a visual scenario and a sound space. Spatial nodes register their resources into the current world.
**/
@:libType
@:csNative
@:native("Godot.World")
@:autoBuild(godot.Godot.buildUserClass())
extern class World extends godot.Resource {
/**
Direct access to the world's physics 3D space state. Used for querying current and potential collisions.
**/
@:native("DirectSpaceState")
public var directSpaceState(default, never):godot.PhysicsDirectSpaceState;
/**
The World's visual scenario.
**/
@:native("Scenario")
public var scenario(default, never):godot.RID;
/**
The World's physics space.
**/
@:native("Space")
public var space(default, never):godot.RID;
/**
The World's fallback_environment will be used if the World's `godot.Environment` fails or is missing.
**/
@:native("FallbackEnvironment")
public var fallbackEnvironment:godot.Environment;
/**
The World's `godot.Environment`.
**/
@:native("Environment")
public var environment:godot.Environment;
@:native("new")
public function new():Void;
@:native("GetSpace")
public function getSpace():godot.RID;
@:native("GetScenario")
public function getScenario():godot.RID;
@:native("SetEnvironment")
public function setEnvironment(env:godot.Environment):Void;
@:native("GetEnvironment")
public function getEnvironment():godot.Environment;
@:native("SetFallbackEnvironment")
public function setFallbackEnvironment(env:godot.Environment):Void;
@:native("GetFallbackEnvironment")
public function getFallbackEnvironment():godot.Environment;
@:native("GetDirectSpaceState")
public function getDirectSpaceState():godot.PhysicsDirectSpaceState;
}