digitaldanny / digitaldanny/detached
Multi-Jumping Stops Jumping
Open
bug
- Dominant language
- C#
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Description**
- Multi-jump sometimes errors out when jumping against the side of a wall.
- Error started after I introduced friction to the physics system.
**Error**
```IndexOutOfRangeException: Index was outside the bounds of the array.```
**Related Code**
```csharp
// Player is always allowed to jump if touching the ground.
// If already in the air, player can only jump if he hasn't met the
// max number of jumps already.
if (this.isGrounded || this.currentNumberJumps < this.maxNumberJumps)
{
Jump(this.jumpPower[currentNumberJumps]);
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.