TruWorlds

World

Inherits: GameSystem

World is a game system that defines global properties of the game world.

Properties

CurrentCamera Instance?

The current active camera in the game world.

Gravity float

The gravity strength in the game world.

StreamingEnabled bool

When enabled, only instances near each player are streamed over the network. Reduces memory and improves performance for large worlds.

StreamingMinRadius float

The radius of the priority zone sent before WorldReady fires. Everything within this radius is guaranteed to be present before the player can move.

StreamingTargetRadius float

The radius within which instances are streamed to each player.

VoidHeight float

The height below which objects are destroyed when they fall.

Functions

Raycast(origin: Vector3, direction: Vector3, raycastParams: RaycastParams) Returns RaycastResult?
RaycastAll(origin: Vector3, direction: Vector3, raycastParams: RaycastParams) Returns List<RaycastResult>