Shooter Template  1.2.3
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
Invector.vCharacterController.vThirdPersonController Class Reference
Inheritance diagram for Invector.vCharacterController.vThirdPersonController:
Invector.vCharacterController.vThirdPersonAnimator Invector.vCharacterController.vThirdPersonMotor Invector.vCharacterController.vCharacter Invector.vHealthController Invector.vCharacterController.vICharacter Invector.vMonoBehaviour Invector.vIHealthController Invector.vIHealthController Invector.vIDamageReceiver Invector.vIDamageReceiver Invector.vCharacterController.TopDownShooter.vTopDownController Invector.vCharacterController.v2_5D.v2_5DController

Public Member Functions

virtual void Sprint (bool value)
 
virtual void Crouch ()
 
virtual void Strafe ()
 
virtual void Jump (bool consumeStamina=false)
 
virtual void Roll ()
 
virtual void RotateWithAnotherTransform (Transform referenceTransform)
 Use another transform as reference to rotate More...
 
virtual void UseAutoCrouch (bool value)
 
- Public Member Functions inherited from Invector.vCharacterController.vThirdPersonAnimator
virtual void LayerControl ()
 
virtual void ActionsControl ()
 
virtual void SetActionState (int value)
 
virtual void MatchTarget (Vector3 matchPosition, Quaternion matchRotation, AvatarTarget target, MatchTargetWeightMask weightMask, float normalisedStartTime, float normalisedEndTime)
 
virtual void TriggerAnimationState (string animationClip, float transition)
 
virtual bool IsAnimatorTag (string tag)
 
- Public Member Functions inherited from Invector.vCharacterController.vThirdPersonMotor
override void Init ()
 
virtual void UpdateMotor ()
 
override void TakeDamage (vDamage damage)
 Apply Damage to Current Health More...
 
virtual void ReduceStamina (float value, bool accumulative)
 
virtual void ChangeStamina (int value)
 Change the currentStamina of Character More...
 
virtual void ChangeMaxStamina (int value)
 Change the MaxStamina of Character More...
 
virtual void DeathBehaviour ()
 
void StaminaRecovery ()
 
virtual void ControlLocomotion ()
 
virtual void FreeMovement ()
 
virtual void ControlSpeed (float velocity)
 
virtual void SetJumpMultiplier (float jumpMultiplier, float timeToReset=1f)
 
virtual void ResetJumpMultiplier ()
 
virtual void AirControl ()
 
virtual float GroundAngle ()
 Return the ground angle More...
 
virtual float GroundAngleFromDirection ()
 Return the angle of ground based on movement direction More...
 
virtual void DisableGravityAndCollision ()
 Disables rigibody gravity, turn the capsule collider trigger and reset all input from the animator. More...
 
virtual void EnableGravityAndCollision (float normalizedTime)
 Turn rigidbody gravity on the uncheck the capsulle collider as Trigger when the animation has finish playing More...
 
virtual void RotateToTarget (Transform target)
 
virtual void RotateToDirection (Vector3 direction, bool ignoreLerp=false)
 
virtual void UpdateTargetDirection (Transform referenceTransform=null)
 Update the targetDirection variable using referenceTransform or just input.Rotate by word the referenceDirection More...
 
override void ResetRagdoll ()
 
override void EnableRagdoll ()
 
virtual string DebugInfo (string additionalText="")
 
- Public Member Functions inherited from Invector.vHealthController
virtual void ChangeHealth (int value)
 Change the currentHealth of Character More...
 
virtual void ChangeMaxHealth (int value)
 Change the MaxHealth of Character More...
 

Public Attributes

bool useInstance = true
 
- Public Attributes inherited from Invector.vCharacterController.vThirdPersonAnimator
Transform matchTarget
 
float lookAtWeight
 
- Public Attributes inherited from Invector.vCharacterController.vThirdPersonMotor
bool debugWindow
 
float maxStamina = 200f
 
float staminaRecovery = 1.2f
 
float sprintStamina = 30f
 
float jumpStamina = 30f
 
float rollStamina = 25f
 
UnityEvent OnStaminaEnd
 
LayerMask groundLayer = 1 << 0
 
LayerMask autoCrouchLayer = 1 << 0
 
float headDetect = 0.95f
 
LayerMask stopMoveLayer
 
float stopMoveHeight = 0.65f
 
float stopMoveDistance = 0.5f
 
bool useRootMotion = false
 
LocomotionType locomotionType = LocomotionType.FreeWithStrafe
 
vMovementSpeed freeSpeed
 
bool rotateByWorld = false
 
bool turnOnSpotAnim = false
 
bool rollControl = false
 
float randomIdleTime = 0f
 
bool jumpAirControl = true
 
float jumpTimer = 0.3f
 
float jumpForward = 3f
 
float jumpHeight = 4f
 
GroundCheckMethod groundCheckMethod = GroundCheckMethod.High
 
float stepOffsetEnd = 0.45f
 
float stepOffsetStart = 0f
 
float stepSmooth = 4f
 
float slopeLimit = 75f
 
float slideVelocity = 7
 
float extraGravity = -10f
 
float ragdollVel = -16f
 
RaycastHit groundHit
 
- Public Attributes inherited from Invector.vCharacterController.vCharacter
DeathBy deathBy = DeathBy.Animation
 
bool removeComponentsAfterDie
 
OnActionHandle onActionEnter = new OnActionHandle()
 
OnActionHandle onActionStay = new OnActionHandle()
 
OnActionHandle onActionExit = new OnActionHandle()
 
- Public Attributes inherited from Invector.vHealthController
int maxHealth = 100
 
float healthRecovery = 0f
 
float healthRecoveryDelay = 0f
 
float currentHealthRecoveryDelay
 

Static Public Attributes

static vThirdPersonController instance
 

Protected Member Functions

virtual void Awake ()
 
override void Start ()
 
override void OnTriggerStay (Collider other)
 Call this in OnTriggerEnter or OnTriggerStay to check if enter in triggerActions
More...
 
override void OnTriggerExit (Collider other)
 Call this in OnTriggerExit to check if exit of triggerActions More...
 
IEnumerator UpdateRaycast ()
 
virtual void AutoCrouch ()
 
virtual bool CanExitCrouch ()
 
virtual void AutoCrouchExit (Collider other)
 
virtual void CheckForAutoCrouch (Collider other)
 
- Protected Member Functions inherited from Invector.vCharacterController.vThirdPersonAnimator
virtual void OnAnimatorMove ()
 
virtual void UpdateAnimator ()
 
virtual void TriggerRandomIdle ()
 
virtual void LocomotionAnimation ()
 
virtual void FreeTurnOnSpot (float direction)
 
virtual void GetTurnOnSpotDirection (Transform root, Transform camera, ref float _speed, ref float _direction, Vector2 input)
 
virtual void RollAnimation ()
 
virtual void DeadAnimation ()
 
- Protected Member Functions inherited from Invector.vCharacterController.vThirdPersonMotor
void RemoveComponents ()
 
override void TriggerDamageReaction (vDamage damage)
 
virtual void StrafeMovement ()
 
virtual void StrafeLimitSpeed (float value)
 
virtual void StrafeVelocity (float velocity)
 
virtual void FreeVelocity (float velocity)
 
void StopMove ()
 
virtual void ControlJumpBehaviour ()
 
IEnumerator ResetJumpMultiplierRoutine ()
 
virtual void CheckGround ()
 
virtual void CheckGroundDistance ()
 
virtual void AlignWithSurface ()
 Prototype to align capsule collider with surface normal More...
 
virtual void Sliding ()
 
virtual bool StepOffset ()
 
virtual void ControlCapsuleHeight ()
 
virtual void CheckRagdoll ()
 
virtual void OnDrawGizmos ()
 
- Protected Member Functions inherited from Invector.vCharacterController.vCharacter
virtual void OnTriggerEnter (Collider other)
 
- Protected Member Functions inherited from Invector.vHealthController
virtual IEnumerator RecoverHealth ()
 
virtual void HealthRecovery ()
 

Additional Inherited Members

- Public Types inherited from Invector.vCharacterController.vThirdPersonMotor
enum  LocomotionType { LocomotionType.FreeWithStrafe, LocomotionType.OnlyStrafe, LocomotionType.OnlyFree }
 
enum  GroundCheckMethod { GroundCheckMethod.Low, GroundCheckMethod.High }
 
- Public Types inherited from Invector.vCharacterController.vCharacter
enum  DeathBy { DeathBy.Animation, DeathBy.AnimationWithRagdoll, DeathBy.Ragdoll }
 
- Protected Attributes inherited from Invector.vCharacterController.vThirdPersonMotor
bool recoveringStamina
 
float groundMinDistance = 0.25f
 
float groundMaxDistance = 0.5f
 
float groundDistance
 
float timeToResetJumpMultiplier
 
- Protected Attributes inherited from Invector.vCharacterController.vCharacter
OnActiveRagdoll _onActiveRagdoll = new OnActiveRagdoll()
 
vAnimatorParameter hitDirectionHash
 
vAnimatorParameter reactionIDHash
 
vAnimatorParameter triggerReactionHash
 
vAnimatorParameter triggerResetStateHash
 
vAnimatorParameter recoilIDHash
 
vAnimatorParameter triggerRecoilHash
 
bool isInit
 
- Protected Attributes inherited from Invector.vHealthController
bool _isDead
 
float _currentHealth
 
OnReceiveDamage _onReceiveDamage = new OnReceiveDamage()
 
OnDead _onDead = new OnDead()
 
- Properties inherited from Invector.vCharacterController.vThirdPersonAnimator
virtual Quaternion rollRotation [get]
 
- Properties inherited from Invector.vCharacterController.vThirdPersonMotor
bool isStrafing [get, set]
 
virtual bool jumpFwdCondition [get]
 
- Properties inherited from Invector.vCharacterController.vCharacter
Animator animator [get]
 
bool ragdolled [get, set]
 
OnActiveRagdoll onActiveRagdoll [get, protected set]
 
- Properties inherited from Invector.vHealthController
int MaxHealth [get, protected set]
 
float currentHealth [get, protected set]
 
bool isDead [get, set]
 
OnReceiveDamage onReceiveDamage [get, protected set]
 
OnDead onDead [get, protected set]
 
virtual bool canRecoverHealth [get]
 
- Properties inherited from Invector.vIHealthController
OnDead onDead [get]
 
float currentHealth [get]
 
int MaxHealth [get]
 
bool isDead [get, set]
 
- Properties inherited from Invector.vIDamageReceiver
OnReceiveDamage onReceiveDamage [get]
 
Transform transform [get]
 
GameObject gameObject [get]
 
- Properties inherited from Invector.vCharacterController.vICharacter
OnActiveRagdoll onActiveRagdoll [get]
 
Animator animator [get]
 
bool ragdolled [get, set]
 

Member Function Documentation

◆ AutoCrouch()

virtual void Invector.vCharacterController.vThirdPersonController.AutoCrouch ( )
protectedvirtual

◆ AutoCrouchExit()

virtual void Invector.vCharacterController.vThirdPersonController.AutoCrouchExit ( Collider  other)
protectedvirtual

◆ Awake()

virtual void Invector.vCharacterController.vThirdPersonController.Awake ( )
protectedvirtual

◆ CanExitCrouch()

virtual bool Invector.vCharacterController.vThirdPersonController.CanExitCrouch ( )
protectedvirtual

◆ CheckForAutoCrouch()

virtual void Invector.vCharacterController.vThirdPersonController.CheckForAutoCrouch ( Collider  other)
protectedvirtual

◆ Crouch()

virtual void Invector.vCharacterController.vThirdPersonController.Crouch ( )
virtual

◆ Jump()

virtual void Invector.vCharacterController.vThirdPersonController.Jump ( bool  consumeStamina = false)
virtual

◆ OnTriggerExit()

override void Invector.vCharacterController.vThirdPersonController.OnTriggerExit ( Collider  other)
protectedvirtual

Call this in OnTriggerExit to check if exit of triggerActions

Parameters
other

Reimplemented from Invector.vCharacterController.vCharacter.

◆ OnTriggerStay()

override void Invector.vCharacterController.vThirdPersonController.OnTriggerStay ( Collider  other)
protectedvirtual

Call this in OnTriggerEnter or OnTriggerStay to check if enter in triggerActions

Parameters
othercollider trigger

Reimplemented from Invector.vCharacterController.vCharacter.

◆ Roll()

virtual void Invector.vCharacterController.vThirdPersonController.Roll ( )
virtual

◆ RotateWithAnotherTransform()

virtual void Invector.vCharacterController.vThirdPersonController.RotateWithAnotherTransform ( Transform  referenceTransform)
virtual

Use another transform as reference to rotate

Parameters
referenceTransform

◆ Sprint()

virtual void Invector.vCharacterController.vThirdPersonController.Sprint ( bool  value)
virtual

◆ Start()

override void Invector.vCharacterController.vThirdPersonController.Start ( )
protectedvirtual

Reimplemented from Invector.vHealthController.

◆ Strafe()

virtual void Invector.vCharacterController.vThirdPersonController.Strafe ( )
virtual

◆ UpdateRaycast()

IEnumerator Invector.vCharacterController.vThirdPersonController.UpdateRaycast ( )
protected

◆ UseAutoCrouch()

virtual void Invector.vCharacterController.vThirdPersonController.UseAutoCrouch ( bool  value)
virtual

Member Data Documentation

◆ instance

vThirdPersonController Invector.vCharacterController.vThirdPersonController.instance
static

◆ useInstance

bool Invector.vCharacterController.vThirdPersonController.useInstance = true

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