An example class part of the Feel demos This class acts as a character controller for the Duck in the FeelDuck demo scene It looks for input, and jumps when instructed to
More...
|
virtual void | Land () |
| This method is called by the duck animator on the frame where it makes contact with the ground. In an actual game context, this may be called when you detect contact with the ground via a physics collision, a downward raycast, etc. More...
|
|
An example class part of the Feel demos This class acts as a character controller for the Duck in the FeelDuck demo scene It looks for input, and jumps when instructed to
◆ HandleInput()
virtual void MoreMountains.Feel.Duck.HandleInput |
( |
| ) |
|
|
protectedvirtual |
◆ Jump()
virtual void MoreMountains.Feel.Duck.Jump |
( |
| ) |
|
|
protectedvirtual |
Performs a jump if possible, otherwise plays a denied feedback
◆ Land()
virtual void MoreMountains.Feel.Duck.Land |
( |
| ) |
|
|
virtual |
This method is called by the duck animator on the frame where it makes contact with the ground. In an actual game context, this may be called when you detect contact with the ground via a physics collision, a downward raycast, etc.
◆ Update()
virtual void MoreMountains.Feel.Duck.Update |
( |
| ) |
|
|
protectedvirtual |
On Update we look for input
◆ _lastJumpStartedAt
float MoreMountains.Feel.Duck._lastJumpStartedAt = -100f |
|
protected |
◆ CooldownDuration
float MoreMountains.Feel.Duck.CooldownDuration = 1f |
a duration, in seconds, between two jumps, during which jumps are prevented
◆ DeniedFeedback
a feedback to call when trying to jump while in cooldown
◆ JumpFeedback
a feedback to call when jumping
◆ LandingFeedback
a feedback to call when landing
The documentation for this class was generated from the following file:
- F:/Github/Store/Feel/Assets/Feel/FeelDemos/Duck/Scripts/Duck.cs