Class reference

World3D

Inherits Resource

A resource that holds all components of a 3D world, such as a visual scenario and a physics space.

Description

Class that has everything pertaining to a world: A physics space, a visual scenario, and a sound space. 3D nodes register their resources into the current 3D world.

Properties

PhysicsDirectSpaceState3D direct_space_state

Direct access to the world's physics 3D 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.

Environment fallback_environment

The World3D's fallback environment will be used if environment fails or is missing.

RID scenario

The World3D's visual scenario.

RID space

The World3D's physics space.

Tutorials

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.