PlayModeRigManager
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
public sealed class PlayModeRigManager : MonoBehaviour, IFluxLocalPlayerNamespace NodeWorld.SDK.Client.PlayMode.
The player of a world's Play mode: the rig of the client (SDKConfig.XRRigPrefab) with the default avatar, driven by the headset, or without one (or with NWWorldRef.ForceDesktopInPlayMode) by the desktop controls of the client. The world plays as in the client: same locomotion, gravity, avatar, interactions and mirrors.
Properties
Controller
public IPlayerController Controller { get; }The local player's rig.
AvatarRig
public NWFullBodyAvatarRig AvatarRig { get; }The IK rig of the local avatar, or null.
Controls
public NWPlayerControls Controls { get; }What the world sets on the local player's locomotion.
Language
public string Language { get; }The language of the system (en or fr).
Methods
TryGetBone
public bool TryGetBone(int syncedBone, out Vector3 position, out Quaternion rotation)World position and rotation of a synced bone of the local avatar; false when it has none.
Respawn
public void Respawn()Brings the local player back to the spawn point.
Initialize
public void Initialize(NWWorldRef worldRef, SDKConfig sdkConfig)Creates the player rig of Play mode at the world's spawn point, with the SDK's settings.
Shutdown
public void Shutdown()Removes the rig.
Events
LanguageChanged
public event System.Action LanguageChangedNever raised in Play mode.
Respawned
public event System.Action RespawnedRaised when the local player respawns.
