ParelVRDocs
Player site

Scripting / Reference

Worlds

Types in the ParelVR.Volt.Worlds namespace.

VoltWorld#

ParelVR.Volt.Worlds.VoltWorld static

The world that is loaded and the players in it.

Properties#

static float DeltaTime { get; }

Seconds the last frame took.

static float FixedDeltaTime { get; }

Seconds between physics steps.

static VoltPlayer LocalPlayer { get; }

The player on this client.

static int PlayerCount { get; }

Number of players in this world's scene. In a world with subrooms, only those in the local player's subroom.

static VoltPlayer[] Players { get; }

Every player in this world's scene. In a world with subrooms, only those in the local player's subroom.

static float Time { get; }

Seconds since the world loaded.

static string WorldId { get; }

Id of this world.

static string WorldName { get; }

Name of this world as shown in the menu.

static string WorldVersion { get; }

Version of the world build that is running. It changes every time the creator publishes.

Methods#

static VoltPlayer GetPlayer(int playerId)

The player with a PlayerId, or null.

static VoltPlayer[] GetPlayers()

Every player in this world's scene. In a world with subrooms, only those in the local player's subroom.

static void RespawnPlayer(VoltPlayer player)

Moves a player back to a spawn point. Only works for the local player.

static void ReturnToHub()

Asks ParelVR to take the local player back to their home world. ParelVR asks the player to confirm.