Up to date
This page is up to date for Godot
If you still find outdated information, please open an issue.
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 ( )