3D Dungeon Crawler
Loading...
Searching...
No Matches
FirstPersonController Class Reference
Inheritance diagram for FirstPersonController:

Public Member Functions

void SetSpeed ()
 

Public Attributes

Animator animator
 
Camera playerCamera
 
float fov = 60f
 
bool invertCamera = false
 
bool cameraCanMove = true
 
float mouseSensitivity = 2f
 
float maxLookAngle = 50f
 
bool lockCursor = true
 
bool crosshair = true
 
Image crosshairObject
 
Sprite crosshairImage
 
Color crosshairColor = Color.white
 
bool enableZoom = true
 
bool holdToZoom = false
 
KeyCode zoomKey = KeyCode.Mouse1
 
float zoomFOV = 30f
 
float zoomStepTime = 5f
 
bool playerCanMove = true
 
float walkSpeed = 5f
 
float maxVelocityChange = 10f
 
bool enableSprint = true
 
bool unlimitedSprint = false
 
KeyCode sprintKey = KeyCode.LeftShift
 
float sprintSpeed = 7f
 
float sprintDuration = 5f
 
float sprintCooldown = .5f
 
float sprintFOV = 80f
 
float sprintFOVStepTime = 10f
 
bool useSprintBar = true
 
bool hideBarWhenFull = true
 
CanvasGroup sprintBarCG
 
Image sprintBarBG
 
Image sprintBar
 
float sprintBarWidthPercent = .3f
 
float sprintBarHeightPercent = .015f
 
bool enableJump = true
 
KeyCode jumpKey = KeyCode.Space
 
float jumpPower = 5f
 
bool isGrounded = false
 
bool enableCrouch = true
 
bool holdToCrouch = true
 
KeyCode crouchKey = KeyCode.LeftControl
 
float crouchHeight = .75f
 
float speedReduction = .5f
 
bool enableHeadBob = true
 
Transform joint
 
float bobSpeed = 10f
 
Vector3 bobAmount = new Vector3(.15f, .05f, 0f)
 

Member Function Documentation

◆ SetSpeed()

void FirstPersonController.SetSpeed ( )

Member Data Documentation

◆ animator

Animator FirstPersonController.animator

◆ bobAmount

Vector3 FirstPersonController.bobAmount = new Vector3(.15f, .05f, 0f)

◆ bobSpeed

float FirstPersonController.bobSpeed = 10f

◆ cameraCanMove

bool FirstPersonController.cameraCanMove = true

◆ crosshair

bool FirstPersonController.crosshair = true

◆ crosshairColor

Color FirstPersonController.crosshairColor = Color.white

◆ crosshairImage

Sprite FirstPersonController.crosshairImage

◆ crosshairObject

Image FirstPersonController.crosshairObject

◆ crouchHeight

float FirstPersonController.crouchHeight = .75f

◆ crouchKey

KeyCode FirstPersonController.crouchKey = KeyCode.LeftControl

◆ enableCrouch

bool FirstPersonController.enableCrouch = true

◆ enableHeadBob

bool FirstPersonController.enableHeadBob = true

◆ enableJump

bool FirstPersonController.enableJump = true

◆ enableSprint

bool FirstPersonController.enableSprint = true

◆ enableZoom

bool FirstPersonController.enableZoom = true

◆ fov

float FirstPersonController.fov = 60f

◆ hideBarWhenFull

bool FirstPersonController.hideBarWhenFull = true

◆ holdToCrouch

bool FirstPersonController.holdToCrouch = true

◆ holdToZoom

bool FirstPersonController.holdToZoom = false

◆ invertCamera

bool FirstPersonController.invertCamera = false

◆ isGrounded

bool FirstPersonController.isGrounded = false

◆ joint

Transform FirstPersonController.joint

◆ jumpKey

KeyCode FirstPersonController.jumpKey = KeyCode.Space

◆ jumpPower

float FirstPersonController.jumpPower = 5f

◆ lockCursor

bool FirstPersonController.lockCursor = true

◆ maxLookAngle

float FirstPersonController.maxLookAngle = 50f

◆ maxVelocityChange

float FirstPersonController.maxVelocityChange = 10f

◆ mouseSensitivity

float FirstPersonController.mouseSensitivity = 2f

◆ playerCamera

Camera FirstPersonController.playerCamera

◆ playerCanMove

bool FirstPersonController.playerCanMove = true

◆ speedReduction

float FirstPersonController.speedReduction = .5f

◆ sprintBar

Image FirstPersonController.sprintBar

◆ sprintBarBG

Image FirstPersonController.sprintBarBG

◆ sprintBarCG

CanvasGroup FirstPersonController.sprintBarCG

◆ sprintBarHeightPercent

float FirstPersonController.sprintBarHeightPercent = .015f

◆ sprintBarWidthPercent

float FirstPersonController.sprintBarWidthPercent = .3f

◆ sprintCooldown

float FirstPersonController.sprintCooldown = .5f

◆ sprintDuration

float FirstPersonController.sprintDuration = 5f

◆ sprintFOV

float FirstPersonController.sprintFOV = 80f

◆ sprintFOVStepTime

float FirstPersonController.sprintFOVStepTime = 10f

◆ sprintKey

KeyCode FirstPersonController.sprintKey = KeyCode.LeftShift

◆ sprintSpeed

float FirstPersonController.sprintSpeed = 7f

◆ unlimitedSprint

bool FirstPersonController.unlimitedSprint = false

◆ useSprintBar

bool FirstPersonController.useSprintBar = true

◆ walkSpeed

float FirstPersonController.walkSpeed = 5f

◆ zoomFOV

float FirstPersonController.zoomFOV = 30f

◆ zoomKey

KeyCode FirstPersonController.zoomKey = KeyCode.Mouse1

◆ zoomStepTime

float FirstPersonController.zoomStepTime = 5f

The documentation for this class was generated from the following file: