Corgi Engine  v8.8
MoreMountains.CorgiEngine.Jumper Class Reference

Add this class to a platform to make it a jumping platform, a trampoline or whatever. It will automatically push any character that touches it up in the air. More...

Inheritance diagram for MoreMountains.CorgiEngine.Jumper:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

Public Attributes

float JumpPlatformBoost = 40
 the force of the jump induced by the platform More...
 
bool CanBeActivatedFromBelow = false
 whether or not this jumper should be allowed to make a character jump from below More...
 
bool PreventJumpIfCharacterIsGrounded = false
 whether or not to let a character jump only if grounded More...
 
MMFeedbacks ActivationFeedback
 a feedback to play when the zone gets activated More...
 

Protected Member Functions

virtual void OnTriggerEnter2D (Collider2D collider)
 Triggered when a CorgiController touches the platform, applys a vertical force to it, propulsing it in the air. More...
 
virtual void LateUpdate ()
 On late update we set a force to our collider's controller if we have one More...
 

Protected Attributes

CorgiController _controller
 
CharacterJump _characterJump
 

Detailed Description

Add this class to a platform to make it a jumping platform, a trampoline or whatever. It will automatically push any character that touches it up in the air.

Member Function Documentation

◆ LateUpdate()

virtual void MoreMountains.CorgiEngine.Jumper.LateUpdate ( )
protectedvirtual

On late update we set a force to our collider's controller if we have one

◆ OnTriggerEnter2D()

virtual void MoreMountains.CorgiEngine.Jumper.OnTriggerEnter2D ( Collider2D  collider)
protectedvirtual

Triggered when a CorgiController touches the platform, applys a vertical force to it, propulsing it in the air.

Parameters
controllerThe corgi controller that collides with the platform.


Member Data Documentation

◆ _characterJump

CharacterJump MoreMountains.CorgiEngine.Jumper._characterJump
protected

◆ _controller

CorgiController MoreMountains.CorgiEngine.Jumper._controller
protected

◆ ActivationFeedback

MMFeedbacks MoreMountains.CorgiEngine.Jumper.ActivationFeedback

a feedback to play when the zone gets activated

◆ CanBeActivatedFromBelow

bool MoreMountains.CorgiEngine.Jumper.CanBeActivatedFromBelow = false

whether or not this jumper should be allowed to make a character jump from below

◆ JumpPlatformBoost

float MoreMountains.CorgiEngine.Jumper.JumpPlatformBoost = 40

the force of the jump induced by the platform

◆ PreventJumpIfCharacterIsGrounded

bool MoreMountains.CorgiEngine.Jumper.PreventJumpIfCharacterIsGrounded = false

whether or not to let a character jump only if grounded


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