World3D
A resource that holds all components of a 3D world, such as a visual scenario and a physics space.
A resource that holds all components of a 3D world, such as a visual scenario and a physics space.
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.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
World3DConstructor
public World3D();Properties7
CameraAttributesProperty
public CameraAttributes CameraAttributes { get; set; }The default CameraAttributes resource to use if none set on the Camera3D.
DirectSpaceStateProperty
public PhysicsDirectSpaceState3D DirectSpaceState { get; }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 Entity._PhysicsProcess in the main thread.
EnvironmentProperty
public Environment Environment { get; set; }The World3D's Environment.
FallbackEnvironmentProperty
public Environment FallbackEnvironment { get; set; }The World3D's fallback environment will be used if World3D.Environment fails or is missing.
NavigationMapProperty
public Rid NavigationMap { get; }The Rid of this world's navigation map. Used by the NavigationServer3D.
ScenarioProperty
public Rid Scenario { get; }The World3D's visual scenario.
SpaceProperty
public Rid Space { get; }The World3D's physics space.
Methods10
GetCameraAttributesCameraAttributes
public CameraAttributes GetCameraAttributes();CameraAttributesGetDirectSpaceStatePhysicsDirectSpaceState3D
public PhysicsDirectSpaceState3D GetDirectSpaceState();PhysicsDirectSpaceState3DGetEnvironmentEnvironment
public Environment GetEnvironment();EnvironmentGetFallbackEnvironmentEnvironment
public Environment GetFallbackEnvironment();EnvironmentGetNavigationMapRid
public Rid GetNavigationMap();RidGetScenarioRid
public Rid GetScenario();RidGetSpaceRid
public Rid GetSpace();RidSetCameraAttributesvoid
public void SetCameraAttributes(CameraAttributes attributes);| Name | Type | Default |
|---|---|---|
attributes | CameraAttributes | — |
SetEnvironmentvoid
public void SetEnvironment(Environment env);| Name | Type | Default |
|---|---|---|
env | Environment | — |
SetFallbackEnvironmentvoid
public void SetFallbackEnvironment(Environment env);| Name | Type | Default |
|---|---|---|
env | Environment | — |