Search Unity

Feedback Making your speed affect how long you jump (+demo)

Discussion in 'Physics' started by Larpushka, Jun 8, 2020.

  1. Larpushka

    Larpushka

    Joined:
    Jan 6, 2015
    Posts:
    214
    So I'm making a game (or rather an exergame) where the speed is controlled by how fast I repeatedly press "w", or rather how fast I run since I'm using a treadmill that presses "w" for me approximately every 15cm that I run, and the point is to jump as far as you can. Currently the mechanism I have for that is that every time "W" is pressed it increases speed by a certain amount and that what makes the character jump longer. I think it's a decent way to handle but before I wed myself to a system I'd like to hear feedbacks about how you'd handle it properly as I'm not an expert in Unity's physics.

    Here a long-distance jump demo I made by increasing speed every time "w" is pressed