Skip to main content

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.

Constructors​

MemberWhat it is
protected SmoothLocomotionPlayerController()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private SmoothLocomotion smoothLocomotionBacking field for SmoothLocomotion, the component that moves the player with the stick.

Properties​

MemberWhat 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​

MemberWhat 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: