- #1
menzow
- 6
- 0
Hello,
I'm new to this forum, and I signed up because I have been struggling with this problem for a couple of days now.
I am making a game where the player has to land on specific platforms.
The player runs at 4 meters / second.
When the player jumps there are 4 different platforms to land on.
All platforms are 50 centimeters apart, each.
1 jump covers a distance of 2 meters. ( Hence the 4 platforms to land on each jump. )
I currently have the following equation to solve the problem:
abs(sin(0.5 * PI * x))
I enter the distance at x. And it returns the correct height.
In theory, this works, but in game I have to keep applying gravity etc.
How could I possible make the player jump this curve when applying gravity?
I have 0 knowledge of physics or whatsoever.
Never had any good math lessons at school so I suck at this topic.
I hope I was clear enough.
I'm new to this forum, and I signed up because I have been struggling with this problem for a couple of days now.
I am making a game where the player has to land on specific platforms.
The player runs at 4 meters / second.
When the player jumps there are 4 different platforms to land on.
All platforms are 50 centimeters apart, each.
1 jump covers a distance of 2 meters. ( Hence the 4 platforms to land on each jump. )
Homework Equations
I currently have the following equation to solve the problem:
abs(sin(0.5 * PI * x))
I enter the distance at x. And it returns the correct height.
In theory, this works, but in game I have to keep applying gravity etc.
How could I possible make the player jump this curve when applying gravity?
I have 0 knowledge of physics or whatsoever.
Never had any good math lessons at school so I suck at this topic.
I hope I was clear enough.