MovementKit
Loading...
Searching...
No Matches
Panning up and down.

Functions

delegate void RiverExplorer.Player.PlayerControl.Panning (Facing PlayerFacing, Moving PlayerMoving, Facing ObjectWasFacing, Facing ObjectNowFacing, GameObject WhatToPan)
 

Variables

bool RiverExplorer.Player.PlayerControl.EnablePanUpDown = true
 
bool RiverExplorer.Player.PlayerControl.IgnorePanInVR = true
 
float RiverExplorer.Player.PlayerControl.PanAngle = 0.0f
 
float RiverExplorer.Player.PlayerControl.PanUpDownSpeed = 10
 
float RiverExplorer.Player.PlayerControl.PanUpDownValue = 0.0f
 
bool RiverExplorer.Player.PlayerControl.ReverseJoyStickPan = false
 
GameObject RiverExplorer.Player.PlayerControl.WhatToPanUpDown
 

Properties

float RiverExplorer.Player.PlayerControl.PanValue [get, private set]
 

Detailed Description

Pan a camera up or down.

Generally pan is disabled in virtual reality, as the head movement is used to pan. It can be override by setting IgnorePanInVR to false.

Panning can be disabled by setting EnablePanUpDown to false.

Function Documentation

◆ Panning()

delegate void RiverExplorer.Player.PlayerControl.Panning ( Facing PlayerFacing,
Moving PlayerMoving,
Facing ObjectWasFacing,
Facing ObjectNowFacing,
GameObject WhatToPan )

#include <G:/Unity/AssetStoreProjects/MovementKit/Assets/RiverExplorer/PlayerControl/Scripts/PlayerControl.cs>

Delegate Interested callers register with OnIsMovingForward to get pan up/down notifications.

Parameters
PlayerFacingThe direction the player is facing.
PlayerMovingThe direction the player is moving.
ObjectWasFacingThe direction the object is facing before.
ObjectNowFacingThe direction the object is facing after.
WhatToPanthe cameras current transform.

Variable Documentation

◆ EnablePanUpDown

bool RiverExplorer.Player.PlayerControl.EnablePanUpDown = true

When true, the player (camera) can pan up and down. This should be false for VR.

See also
WhatToPanUpDown
PanUpDownSpeed

◆ IgnorePanInVR

bool RiverExplorer.Player.PlayerControl.IgnorePanInVR = true
private

When true, pan Up/Down is ignored in VR mode.

◆ PanAngle

float RiverExplorer.Player.PlayerControl.PanAngle = 0.0f
private

◆ PanUpDownSpeed

float RiverExplorer.Player.PlayerControl.PanUpDownSpeed = 10

How fast to Pan Up and Down.

◆ PanUpDownValue

float RiverExplorer.Player.PlayerControl.PanUpDownValue = 0.0f
private

◆ ReverseJoyStickPan

bool RiverExplorer.Player.PlayerControl.ReverseJoyStickPan = false
private

Some people want the controls reversed. By default moving the joy stick forward pans down. This reverses it. This does not effect the keyboard up/down arrows where up pans up.

◆ WhatToPanUpDown

GameObject RiverExplorer.Player.PlayerControl.WhatToPanUpDown
private

What to pan up/down. Typically a camera game object. The data type was not set to Camera as the camera may be part of another GameObject that should actually be panned. Accepts a Camera object.

Properties

◆ PanValue

float RiverExplorer.Player.PlayerControl.PanValue
getprivate set

The latest pan up/down input value.