FrameIT
Characters.FirstPerson.FirstPersonController1 Class Reference
Inheritance diagram for Characters.FirstPerson.FirstPersonController1:

Public Member Functions

void callbackMovement (InputAction.CallbackContext ctx)
 
float ButtonsToAxe (float up, float down)
 

Public Attributes

Camera m_Camera
 
string Running_keyBind
 
GameObject PositionOfActivePlayer_GObj
 

Private Member Functions

void Awake ()
 
void PlayerInput_onActionTriggered (InputAction.CallbackContext context)
 
void OnEnable ()
 
void OnDisable ()
 
void Start ()
 
void Update ()
 
void SetPositionOfActivePlayerGObj ()
 
void PlayLandingSound ()
 
void FixedUpdate ()
 
void PlayJumpSound ()
 
void ProgressStepCycle (float speed)
 
void PlayFootStepAudio ()
 
void UpdateCameraPosition (float speed)
 
void GetInput (out float speed)
 
void RotateView ()
 
void OnControllerColliderHit (ControllerColliderHit hit)
 

Private Attributes

bool m_IsWalking
 
float m_WalkSpeed
 
float m_RunSpeed
 
float m_RunstepLenghten
 
float m_JumpSpeed
 
float m_StickToGroundForce
 
float m_GravityMultiplier
 
MouseLook1 m_MouseLook
 
bool m_UseFovKick
 
FOVKick m_FovKick = new FOVKick()
 
bool m_UseHeadBob
 
CurveControlledBob m_HeadBob = new CurveControlledBob()
 
LerpControlledBob m_JumpBob = new LerpControlledBob()
 
float m_StepInterval
 
AudioClip[] m_FootstepSounds
 
AudioClip m_JumpSound
 
AudioClip m_LandSound
 
bool m_Jump
 
float m_YRotation
 
Vector2 m_Input
 
Vector3 m_MoveDir = Vector3.zero
 
CharacterController m_CharacterController
 
CollisionFlags m_CollisionFlags
 
bool m_PreviouslyGrounded
 
Vector3 m_OriginalCameraPosition
 
float m_StepCycle
 
float m_NextStep
 
bool m_Jumping
 
AudioSource m_AudioSource
 
ControlMapping input_ControlMapping
 
PlayerInput playerInput
 
Vector2 Movement_fromCallback
 
InputAction action_jump
 
InputAction action_movement
 
InputAction action_run
 

Member Function Documentation

◆ Awake()

void Characters.FirstPerson.FirstPersonController1.Awake ( )
private

◆ ButtonsToAxe()

float Characters.FirstPerson.FirstPersonController1.ButtonsToAxe ( float  up,
float  down 
)

◆ callbackMovement()

void Characters.FirstPerson.FirstPersonController1.callbackMovement ( InputAction.CallbackContext  ctx)

◆ FixedUpdate()

void Characters.FirstPerson.FirstPersonController1.FixedUpdate ( )
private

◆ GetInput()

void Characters.FirstPerson.FirstPersonController1.GetInput ( out float  speed)
private

◆ OnControllerColliderHit()

void Characters.FirstPerson.FirstPersonController1.OnControllerColliderHit ( ControllerColliderHit  hit)
private

◆ OnDisable()

void Characters.FirstPerson.FirstPersonController1.OnDisable ( )
private

◆ OnEnable()

void Characters.FirstPerson.FirstPersonController1.OnEnable ( )
private

◆ PlayerInput_onActionTriggered()

void Characters.FirstPerson.FirstPersonController1.PlayerInput_onActionTriggered ( InputAction.CallbackContext  context)
private

◆ PlayFootStepAudio()

void Characters.FirstPerson.FirstPersonController1.PlayFootStepAudio ( )
private

◆ PlayJumpSound()

void Characters.FirstPerson.FirstPersonController1.PlayJumpSound ( )
private

◆ PlayLandingSound()

void Characters.FirstPerson.FirstPersonController1.PlayLandingSound ( )
private

◆ ProgressStepCycle()

void Characters.FirstPerson.FirstPersonController1.ProgressStepCycle ( float  speed)
private

◆ RotateView()

void Characters.FirstPerson.FirstPersonController1.RotateView ( )
private

◆ SetPositionOfActivePlayerGObj()

void Characters.FirstPerson.FirstPersonController1.SetPositionOfActivePlayerGObj ( )
private

◆ Start()

void Characters.FirstPerson.FirstPersonController1.Start ( )
private

◆ Update()

void Characters.FirstPerson.FirstPersonController1.Update ( )
private

◆ UpdateCameraPosition()

void Characters.FirstPerson.FirstPersonController1.UpdateCameraPosition ( float  speed)
private

Member Data Documentation

◆ action_jump

InputAction Characters.FirstPerson.FirstPersonController1.action_jump
private

◆ action_movement

InputAction Characters.FirstPerson.FirstPersonController1.action_movement
private

◆ action_run

InputAction Characters.FirstPerson.FirstPersonController1.action_run
private

◆ input_ControlMapping

ControlMapping Characters.FirstPerson.FirstPersonController1.input_ControlMapping
private

◆ m_AudioSource

AudioSource Characters.FirstPerson.FirstPersonController1.m_AudioSource
private

◆ m_Camera

Camera Characters.FirstPerson.FirstPersonController1.m_Camera

◆ m_CharacterController

CharacterController Characters.FirstPerson.FirstPersonController1.m_CharacterController
private

◆ m_CollisionFlags

CollisionFlags Characters.FirstPerson.FirstPersonController1.m_CollisionFlags
private

◆ m_FootstepSounds

AudioClip [] Characters.FirstPerson.FirstPersonController1.m_FootstepSounds
private

◆ m_FovKick

FOVKick Characters.FirstPerson.FirstPersonController1.m_FovKick = new FOVKick()
private

◆ m_GravityMultiplier

float Characters.FirstPerson.FirstPersonController1.m_GravityMultiplier
private

◆ m_HeadBob

CurveControlledBob Characters.FirstPerson.FirstPersonController1.m_HeadBob = new CurveControlledBob()
private

◆ m_Input

Vector2 Characters.FirstPerson.FirstPersonController1.m_Input
private

◆ m_IsWalking

bool Characters.FirstPerson.FirstPersonController1.m_IsWalking
private

◆ m_Jump

bool Characters.FirstPerson.FirstPersonController1.m_Jump
private

◆ m_JumpBob

LerpControlledBob Characters.FirstPerson.FirstPersonController1.m_JumpBob = new LerpControlledBob()
private

◆ m_Jumping

bool Characters.FirstPerson.FirstPersonController1.m_Jumping
private

◆ m_JumpSound

AudioClip Characters.FirstPerson.FirstPersonController1.m_JumpSound
private

◆ m_JumpSpeed

float Characters.FirstPerson.FirstPersonController1.m_JumpSpeed
private

◆ m_LandSound

AudioClip Characters.FirstPerson.FirstPersonController1.m_LandSound
private

◆ m_MouseLook

MouseLook1 Characters.FirstPerson.FirstPersonController1.m_MouseLook
private

◆ m_MoveDir

Vector3 Characters.FirstPerson.FirstPersonController1.m_MoveDir = Vector3.zero
private

◆ m_NextStep

float Characters.FirstPerson.FirstPersonController1.m_NextStep
private

◆ m_OriginalCameraPosition

Vector3 Characters.FirstPerson.FirstPersonController1.m_OriginalCameraPosition
private

◆ m_PreviouslyGrounded

bool Characters.FirstPerson.FirstPersonController1.m_PreviouslyGrounded
private

◆ m_RunSpeed

float Characters.FirstPerson.FirstPersonController1.m_RunSpeed
private

◆ m_RunstepLenghten

float Characters.FirstPerson.FirstPersonController1.m_RunstepLenghten
private

◆ m_StepCycle

float Characters.FirstPerson.FirstPersonController1.m_StepCycle
private

◆ m_StepInterval

float Characters.FirstPerson.FirstPersonController1.m_StepInterval
private

◆ m_StickToGroundForce

float Characters.FirstPerson.FirstPersonController1.m_StickToGroundForce
private

◆ m_UseFovKick

bool Characters.FirstPerson.FirstPersonController1.m_UseFovKick
private

◆ m_UseHeadBob

bool Characters.FirstPerson.FirstPersonController1.m_UseHeadBob
private

◆ m_WalkSpeed

float Characters.FirstPerson.FirstPersonController1.m_WalkSpeed
private

◆ m_YRotation

float Characters.FirstPerson.FirstPersonController1.m_YRotation
private

◆ Movement_fromCallback

Vector2 Characters.FirstPerson.FirstPersonController1.Movement_fromCallback
private

◆ playerInput

PlayerInput Characters.FirstPerson.FirstPersonController1.playerInput
private

◆ PositionOfActivePlayer_GObj

GameObject Characters.FirstPerson.FirstPersonController1.PositionOfActivePlayer_GObj

◆ Running_keyBind

string Characters.FirstPerson.FirstPersonController1.Running_keyBind

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