SmoothLocomotionPlayerController
An abstract class in Root.Township, the global namespace.
Base VR player controller for players that move with thumbstick (smooth) locomotion, through a SmoothLocomotion component.
- Listed in Global namespace: S
- Inherits or implements
VRPlayerController - Derived types
PlayerCharacter,CustomizationPlayerController,MainMenuPlayerController
Constructors
| Member | What it is |
|---|---|
protected SmoothLocomotionPlayerController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private SmoothLocomotion smoothLocomotion | Backing field for SmoothLocomotion, the component that moves the player with the stick. |
Properties
| Member | What it is |
|---|---|
override Vector3 BodyCenter { get; } | Body centre as worked out by the smooth locomotion component. |
override Vector3 RealFeetPosition { get; } | Point under the player at the controller's height: the locomotion position for the local player, the head position for others. |
SmoothLocomotion SmoothLocomotion { get; } | The smooth locomotion component. |
Methods
| Member | What it is |
|---|---|
protected override void LoadForChunk(Chunk chunk) | Also makes smooth locomotion wait for the chunk to finish loading. |
Used in
Members of other types that take, return or hold a SmoothLocomotionPlayerController:
DepthCheckLocoCheck.checkingPlayers, DepthCheckLocoCheck.Enter, DepthCheckLocoCheck.EnterDepth, DepthCheckLocoCheck.GetDepth, DepthCheckLocoCheck.Leave, DepthCheckLocoCheck.LeaveDepth, EnterLocomotionCheck.Enter, EnterLocomotionCheck.Leave, LocomotionModifier.OnPlayerEntered, LocomotionModifier.OnPlayerLeft, LocomotionModifier.playerMap, LocomotionModifier.RemovePlayer, LocomotionModifierAction.Begin, LocomotionModifierAction.Finish, LocomotionModifierCheck.Enter, LocomotionModifierCheck.Leave, LocomotionModifierVolumeTrigger.PlayerEntered, LocomotionModifierVolumeTrigger.PlayerLeft, MovingPlatform.PlayerEntered, MovingPlatform.PlayerLeft, PowerStinger.LerpMove, SendToSafetyLocoAction.Begin, SendToSafetyLocoAction.Finish, SetStepSoundOverrideLocoAction.Begin, SetStepSoundOverrideLocoAction.Finish, SmoothLocomotion.character, SmoothLocomotion.Character, SpeedModifierLocoAction.Begin, SpeedModifierLocoAction.Finish, VolumeTrigger.GetPlayer, VolumeTrigger.PlayerEntered, VolumeTrigger.PlayerLeft, VolumeTrigger.players.