Corgi Engine
v9.0
|
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...
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 |
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.
|
protectedvirtual |
On late update we set a force to our collider's controller if we have one
|
protectedvirtual |
Triggered when a CorgiController touches the platform, applys a vertical force to it, propulsing it in the air.
controller | The corgi controller that collides with the platform. |
|
protected |
|
protected |
MMFeedbacks MoreMountains.CorgiEngine.Jumper.ActivationFeedback |
a feedback to play when the zone gets activated
bool MoreMountains.CorgiEngine.Jumper.CanBeActivatedFromBelow = false |
whether or not this jumper should be allowed to make a character jump from below
float MoreMountains.CorgiEngine.Jumper.JumpPlatformBoost = 40 |
the force of the jump induced by the platform
bool MoreMountains.CorgiEngine.Jumper.PreventJumpIfCharacterIsGrounded = false |
whether or not to let a character jump only if grounded