NodeWorld

IFluxLocalPlayer

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public interface IFluxLocalPlayer

Namespace NodeWorld.SDK.Client.Flux.

The local player, as the FL# scripts of the world see it.

Properties

Controller

csharp
IPlayerController Controller { get; }

The controller of the player's rig; null while there is none.

AvatarRig

csharp
NWFullBodyAvatarRig AvatarRig { get; }

The full-body rig of the local avatar, drawn with its head by the cameras that show it (mirrors); null without one.

Controls

csharp
NWPlayerControls Controls { get; }

What the world may change of the player's locomotion, seats, input and haptics; null when the rig has none.

Language

csharp
string Language { get; }

The language of the client ("fr", "en"...).

Methods

Respawn

csharp
void Respawn()

Brings the player back to the spawn point.

TryGetBone

csharp
bool TryGetBone(int syncedBone, out Vector3 position, out Quaternion rotation)

A bone of the local avatar (index in the protocol's shared bones, SyncedBoneLayout), world space.

Events

LanguageChanged

csharp
event Action LanguageChanged

The player changed the language of the client.

Respawned

csharp
event Action Respawned

The player was brought back to the respawn point (fell under the world's respawn height, or Respawn).