|
2D Platform Controller
v1.7.0
Autogenerated code documentation for the 2D Platform Controller.
|
Jump details. Note that jumps are also affected by the Physics.gravity setting. More...
Public Attributes | |
| bool | canDoubleJump = false |
| Set to true to enable double jump. More... | |
| float | jumpVelocity = 10.0f |
| Set to true to enable wall jumps. More... | |
| float | doubleJumpVelocity = 8.0f |
| How fast the doublejump is. More... | |
| float | jumpTimer = 0.2f |
| Controls how long you are considered to be jumping. If this is too small you wont be able to jump away from climables. If its too large you wont be able to quickly jump twice in a row. More... | |
| float | jumpHeldTime = 0.25f |
| How long after pressing jump it can be held down to add extra force. use this if you want jumps to get bigger when you hold jump. More... | |
| float | jumpFrameVelocity = 25.0f |
| How much extra acceleration is added when you hold the jump button down. Set to zero for fixed height jumps. More... | |
| float | drag = 1.005f |
| The amount of drag in the air. When you jump you move/change direction at walk speed. By setting the drag low you will get extra distance when you do a running jump. More... | |
| float | fallVelocity = -1.0f |
| The velocity required before the fall event replaces the airbourne event (negative number). More... | |
Jump details. Note that jumps are also affected by the Physics.gravity setting.
| bool JumpDetails.canDoubleJump = false |
Set to true to enable double jump.
| float JumpDetails.doubleJumpVelocity = 8.0f |
How fast the doublejump is.
| float JumpDetails.drag = 1.005f |
The amount of drag in the air. When you jump you move/change direction at walk speed. By setting the drag low you will get extra distance when you do a running jump.
| float JumpDetails.fallVelocity = -1.0f |
The velocity required before the fall event replaces the airbourne event (negative number).
| float JumpDetails.jumpFrameVelocity = 25.0f |
How much extra acceleration is added when you hold the jump button down. Set to zero for fixed height jumps.
| float JumpDetails.jumpHeldTime = 0.25f |
How long after pressing jump it can be held down to add extra force. use this if you want jumps to get bigger when you hold jump.
| float JumpDetails.jumpTimer = 0.2f |
Controls how long you are considered to be jumping. If this is too small you wont be able to jump away from climables. If its too large you wont be able to quickly jump twice in a row.
| float JumpDetails.jumpVelocity = 10.0f |
Set to true to enable wall jumps.
How fast the jump is.