Shooter Template  1.2.3
Public Attributes | Protected Member Functions | Properties | List of all members
Invector.vCharacterController.v2_5D.v2_5DController Class Reference
Inheritance diagram for Invector.vCharacterController.v2_5D.v2_5DController:
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

Public Attributes

LayerMask mouseLayerMask = 1 << 0
 
- Public Attributes inherited from Invector.vCharacterController.vThirdPersonController
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
 

Protected Member Functions

override void StrafeLimitSpeed (float value)
 
override void StrafeVelocity (float velocity)
 
- Protected Member Functions inherited from Invector.vCharacterController.vThirdPersonController
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 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 ()
 

Properties

Vector3 lookPos [get]
 
- 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]
 

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 }
 
- Public Member Functions inherited from Invector.vCharacterController.vThirdPersonController
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...
 
- Static Public Attributes inherited from Invector.vCharacterController.vThirdPersonController
static vThirdPersonController instance
 
- 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()
 

Member Function Documentation

◆ StrafeLimitSpeed()

override void Invector.vCharacterController.v2_5D.v2_5DController.StrafeLimitSpeed ( float  value)
protectedvirtual

◆ StrafeVelocity()

override void Invector.vCharacterController.v2_5D.v2_5DController.StrafeVelocity ( float  velocity)
protectedvirtual

Member Data Documentation

◆ mouseLayerMask

LayerMask Invector.vCharacterController.v2_5D.v2_5DController.mouseLayerMask = 1 << 0

Property Documentation

◆ lookPos

Vector3 Invector.vCharacterController.v2_5D.v2_5DController.lookPos
get

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