MovementKit
Loading...
Searching...
No Matches
Turn and Look.
Collaboration diagram for Turn and Look.:

Topics

 Animation relateted
 

Functions

delegate void RiverExplorer.Player.PlayerControl.Turn (Facing WasFacing, Facing NowFacing, Moving PlayerMoving)
 
delegate void RiverExplorer.Player.PlayerControl.UTurned (Facing WasFacing, Facing NowFacing, Moving PlayerMoving)
 

Variables

bool RiverExplorer.Player.PlayerControl.EnableTurnLeftRight = true
 
float RiverExplorer.Player.PlayerControl.RangeWithinDegrees = 15.0f
 
float RiverExplorer.Player.PlayerControl.TurnSpeed = 10
 

Properties

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

Detailed Description

Turning

The player can turn left or right. In virtual reality, the player can turn by turning their head and by using the controls. Turning can be disabled by setting EnableTurnLeftRight to false.

Function Documentation

◆ Turn()

delegate void RiverExplorer.Player.PlayerControl.Turn ( Facing WasFacing,
Facing NowFacing,
Moving PlayerMoving )

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

Player turned

This is called each time the player turns more than 11.25° of the previous reported position.

Parameters
WasFacingThe direction the player is facing before the turn.
NowFacingThe direction the player is facing after the turn.
PlayerMovingThe players current velocity.

◆ UTurned()

delegate void RiverExplorer.Player.PlayerControl.UTurned ( Facing WasFacing,
Facing NowFacing,
Moving PlayerMoving )

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

Player U-turned

This is called each time the player turns between 157.5° and 202.5° from the previous reported position.

Parameters
WasFacingThe direction the player is facing before the turn.
NowFacingThe direction the player is facing after the turn.
PlayerMovingThe players current velocity.

Variable Documentation

◆ EnableTurnLeftRight

bool RiverExplorer.Player.PlayerControl.EnableTurnLeftRight = true

When true, enable the player to turn.

◆ RangeWithinDegrees

float RiverExplorer.Player.PlayerControl.RangeWithinDegrees = 15.0f

◆ TurnSpeed

float RiverExplorer.Player.PlayerControl.TurnSpeed = 10

The speed of the turn.

Properties

◆ TurningValue

float RiverExplorer.Player.PlayerControl.TurningValue
getprivate set

The latest turning input value.