Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A resource that holds all components of a 2D world, such as a canvas and a physics space.
Class that has everything pertaining to a 2D world: A physics space, a canvas, and a sound space. 2D nodes register their resources into the current 2D world.
RID get_canvas ( )
PhysicsDirectSpaceState2D get_direct_space_state ( )
Direct access to the world's physics 2D space state. Used for querying current and potential collisions. When using multi-threaded physics, access is limited to Node._physics_process in the main thread.
RID get_navigation_map ( )
RID get_space ( )