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.
◆ Panning()
delegate void RiverExplorer.Player.PlayerControl.Panning |
( |
Facing | PlayerFacing, |
|
|
Moving | PlayerMoving, |
|
|
Facing | ObjectWasFacing, |
|
|
Facing | ObjectNowFacing, |
|
|
GameObject | WhatToPan ) |
◆ EnablePanUpDown
bool RiverExplorer.Player.PlayerControl.EnablePanUpDown = true |
◆ 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.
◆ PanValue
float RiverExplorer.Player.PlayerControl.PanValue |
|
getprivate set |
The latest pan up/down input value.