Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / EnvironmentState

Type Alias: EnvironmentState

ts
type EnvironmentState = {
  skybox: EnvironmentSkyboxState;
  fog: EnvironmentFogState;
  gravity: EnvironmentGravityState;
  fixedTimeStep: number;
};

Defined in: components/Environment.ts:58

Aggregated authoring state owned by Environment.

Properties

PropertyTypeDescriptionDefined in
skyboxEnvironmentSkyboxStateSkybox configuration.components/Environment.ts:60
fogEnvironmentFogStateFog configuration.components/Environment.ts:62
gravityEnvironmentGravityStateWorld gravity.components/Environment.ts:64
fixedTimeStepnumberFixed timestep (seconds) used by the physics accumulator loop. Physics is stepped in fixed increments of this size each frame. Default is 0.02 (50 Hz).components/Environment.ts:70