This class lets you grab, carry and throw objects with a GrabCarryAndThrowObject component.
More...
|
| override string | HelpBoxText () |
| | This method is only used to display a helpbox text at the beginning of the ability's inspector.
|
| override void | UpdateAnimator () |
| | At the end of each cycle, we update our animator parameters with our current state.
|
| override void | ResetAbility () |
| | On reset ability, we cancel all the changes made.
|
| virtual void | SetInputManager (InputManager inputManager) |
| | Sets a new input manager for this ability to get input from.
|
| virtual void | BindAnimator () |
| | Binds the animator from the character and initializes the animator parameters.
|
| virtual void | ResetInput () |
| | Resets all input for this ability. Can be overridden for ability specific directives.
|
| virtual void | EarlyProcessAbility () |
| | The first of the 3 passes you can have in your ability. Think of it as EarlyUpdate() if it existed.
|
| virtual void | ProcessAbility () |
| | The second of the 3 passes you can have in your ability. Think of it as Update()
|
| virtual void | LateProcessAbility () |
| | The last of the 3 passes you can have in your ability. Think of it as LateUpdate()
|
| virtual void | PermitAbility (bool abilityPermitted) |
| | Changes the status of the ability's permission.
|
| virtual void | Flip () |
| | Override this to specify what should happen in this ability when the character flips.
|
| virtual void | PlayAbilityStartFeedbacks () |
| | Plays the ability start feedback.
|
| virtual void | StopStartFeedbacks () |
| | Stops the ability used feedback.
|
| virtual void | PlayAbilityStopFeedbacks () |
| | Plays the ability stop feedback.
|
| virtual void | RegisterAnimatorParameter (string parameterName, AnimatorControllerParameterType parameterType, out int parameter) |
| | Registers a new animator parameter to the list.
|
|
| override void | Initialization () |
| | On init we set our CarryParent to the character transform if null.
|
| override void | HandleInput () |
| | Looks for throw and grab inputs.
|
| virtual void | GrabAttempt () |
| | Tries to grab by casting a raycast.
|
| virtual GrabCarryAndThrowObject | GetGrababbleObject () |
| virtual void | Grab () |
| | Sets the ability in carrying mode.
|
| virtual void | Throw () |
| | Throws the carried object.
|
| virtual void | StopFeedbacks () |
| | Stops all feedbacks.
|
| virtual void | LateUpdate () |
| | On late update we reset our states.
|
| override void | InitializeAnimatorParameters () |
| | Adds required animator parameters to the animator parameters list if they exist.
|
| virtual void | Start () |
| | On Start(), we call the ability's intialization.
|
| virtual void | InternalHandleInput () |
| | Internal method to check if an input manager is present or not.
|
| virtual void | OnRespawn () |
| | Override this to describe what should happen to this ability when the character respawns.
|
| virtual void | OnDeath () |
| | Override this to describe what should happen to this ability when the character respawns.
|
| virtual void | OnHit () |
| | Override this to describe what should happen to this ability when the character takes a hit.
|
| virtual void | OnEnable () |
| | On enable, we bind our respawn delegate.
|
| virtual void | OnDisable () |
| | On disable, we unbind our respawn delegate.
|
This class lets you grab, carry and throw objects with a GrabCarryAndThrowObject component.
Animation parameters :
- Grabbing, boolean, triggered when an object is grabbed
- Carrying : boolean, true if an object is being carried, false otherwise
- CarryingID : int, set to whatever value is set on the carried object
- Throwing, boolean, triggered when an object gets thrown
◆ GetGrababbleObject()
◆ Grab()
| virtual void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.Grab |
( |
| ) |
|
|
protectedvirtual |
Sets the ability in carrying mode.
◆ GrabAttempt()
| virtual void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.GrabAttempt |
( |
| ) |
|
|
protectedvirtual |
Tries to grab by casting a raycast.
◆ HandleInput()
| override void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.HandleInput |
( |
| ) |
|
|
protectedvirtual |
◆ HelpBoxText()
| override string MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.HelpBoxText |
( |
| ) |
|
|
virtual |
◆ Initialization()
| override void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.Initialization |
( |
| ) |
|
|
protectedvirtual |
◆ InitializeAnimatorParameters()
| override void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.InitializeAnimatorParameters |
( |
| ) |
|
|
protectedvirtual |
◆ LateUpdate()
| virtual void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.LateUpdate |
( |
| ) |
|
|
protectedvirtual |
On late update we reset our states.
◆ ResetAbility()
| override void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.ResetAbility |
( |
| ) |
|
|
virtual |
◆ StopFeedbacks()
| virtual void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.StopFeedbacks |
( |
| ) |
|
|
protectedvirtual |
◆ Throw()
| virtual void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.Throw |
( |
| ) |
|
|
protectedvirtual |
Throws the carried object.
◆ UpdateAnimator()
| override void MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.UpdateAnimator |
( |
| ) |
|
|
virtual |
◆ _actualRaycastDirection
| Vector3 MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._actualRaycastDirection |
|
protected |
◆ _carryingAnimationParameter
| int MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._carryingAnimationParameter |
|
protected |
◆ _carryingAnimationParameterName
| const string MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._carryingAnimationParameterName = "Carrying" |
|
staticprotected |
◆ _carryingIDAnimationParameter
| int MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._carryingIDAnimationParameter |
|
protected |
◆ _carryingIDAnimationParameterName
| const string MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._carryingIDAnimationParameterName = "CarryingID" |
|
staticprotected |
◆ _grabbingAnimationParameter
| int MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._grabbingAnimationParameter |
|
protected |
◆ _grabbingAnimationParameterName
| const string MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._grabbingAnimationParameterName = "Grabbing" |
|
staticprotected |
◆ _raycastOrigin
| Vector2 MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._raycastOrigin |
|
protected |
◆ _recoilVector
| Vector2 MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._recoilVector |
|
protected |
◆ _throwingAnimationParameter
| int MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._throwingAnimationParameter |
|
protected |
◆ _throwingAnimationParameterName
| const string MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow._throwingAnimationParameterName = "Throwing" |
|
staticprotected |
◆ CarriedObject
a reference to the object being carried
◆ Carrying
| bool MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.Carrying = false |
whether or not this Character is carrying an object this frame
◆ CarryingID
| int MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.CarryingID = -1 |
the ID of the object being carried
◆ CarryParent
| Transform MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.CarryParent |
a Transform used to attach carried objects to
◆ DetectionLayerMask
the layer this grab raycast should look for objects on. This should match the layer you put your GrabCarryAndThrowObjects on
◆ Grabbing
| bool MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.Grabbing = false |
whether or not this Character is grabbing something right now
◆ PreventThrowIfCarryingOnGrab
| bool MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.PreventThrowIfCarryingOnGrab = false |
whether or not to allow the character to throw if next to a grabbable object
◆ RaycastDirection
| Vector3 MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.RaycastDirection = Vector3.down |
the direction the raycast used to detect grabbable objects will be cast in (if the Character is facing right). Use Vector3.down for Mario2-like grabs from the top, or Vector3.right for side grabs for example.
◆ RaycastDistance
| float MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.RaycastDistance = 1f |
the distance the grab raycast should cover (you'll want it bigger than half your Character's dimensions
◆ RecoilModifier
| float MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.RecoilModifier = 1f |
a modifier to apply to the recoil set on the object
◆ ThrowForce
| float MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.ThrowForce = 1f |
the force to apply when throwing
◆ Throwing
| bool MoreMountains.CorgiEngine.CharacterGrabCarryAndThrow.Throwing = false |
whether or not this Character is throwing something this frame
The documentation for this class was generated from the following file: