v1.0.2
added more printout
Controls:
- Attack/Interact: add a line in console output, useful to visually separate the data
- Jump: Start recording. Stops when no longer pressing Jump and the player character lands on the ground.
Data format:
new: 16,6667, old + delta: 16,6667, OffGroundTime: 33,33334
CanJump: True, IsAtCeiling: False
Y delta: -4,985001, Y velocity: -19,96279
jump Y velocity : -20,86279
jump Y velocity delta: -21,76279, substep gravity: 0,9000018
player Y velocity delta: -20,86279
Player is jumping
---
newandold + deltacorrespond tojumpTime, one after the function call, the other before, but adjusted to the change that is usually applied to get current time, represented by delta. In this debug tool it is basically used to show how long the current jump has been going, how physics frames look like, and when the jump time gets cleared or stays at 0 (which is the only time when these 2 values are different).CanJumpis a function in-game that represents when coyote time is applied. The max length of coyote time is 125 ms, but can be lower a bit due to frame cutoff.OffGroundTimeandIsAtCeilingshould be self explanatory.Y deltais change in Y position of player compared to the start of the jump sequence,Y velocityis Y velocity of player.jump Y velocityis the velocity that is being applied during a jump,jump Y velocity deltais a change in that velocity compared to previous frame,substep gravityis how much gravity is applied in current frame (doesn't change outside of slowed time).player Y velocity deltais change in player Y velocity compared to previous frame.Player is jumpingshows up whenever player pressing Jump button was detected. When the button is not pressed, the line is empty.