✅ whats wrong

whats wrong?
No description
16 Replies
Jimmacle
Jimmacle10mo ago
$details
MODiX
MODiX10mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Anu6is
Anu6is10mo ago
according to the error list, nothing ...
_badProgrammer;
_badProgrammer;OP10mo ago
can you take a look at the last 3 floats in update method? they seem sus I kinda tried something to fix but still wanna be sure
Buddy
Buddy10mo ago
You still have not explained your problem.
_badProgrammer;
_badProgrammer;OP10mo ago
yes i need to do that so the problem is I think there are some problems regarding values and variables in the last 3 floats in update method
Angius
Angius10mo ago
"Yes doctor, the place that hurts me is the place that hurts me" What is the problem with those variables?
i like chatgpt
i like chatgpt10mo ago
Correct equation is:
float jumpMax = -0.5 * gravity * timeToJumpMax * timeToJumpMax + firstVelocity * timeToJumpMax;
float jumpMax = -0.5 * gravity * timeToJumpMax * timeToJumpMax + firstVelocity * timeToJumpMax;
_badProgrammer;
_badProgrammer;OP10mo ago
can I ask why -0.5
i like chatgpt
i like chatgpt10mo ago
because the gravity opposes the upward movement.
v = v_0 - g t
y = v_0 t - (1/2) g t^2
v = v_0 - g t
y = v_0 t - (1/2) g t^2
convention: - Upward is positive y - The object's initial velocity is upward - Gravity is downward
_badProgrammer;
_badProgrammer;OP10mo ago
wait im thinking hmmm yes yeaaah. nice thanks for being direct and fixing the problem. I cant tell you guys anymore than I think there are some problems in last 3 floats because my friend sent me this code to fix it
i like chatgpt
i like chatgpt10mo ago
Don't forget to type /close to close this question if you think the problem has been solved. 🙂
_badProgrammer;
_badProgrammer;OP10mo ago
7close
i like chatgpt
i like chatgpt10mo ago
Not seven but slash.
_badProgrammer;
_badProgrammer;OP10mo ago
yeah yeah
_badProgrammer;
_badProgrammer;OP10mo ago
fought so hard and won
No description
Want results from more Discord servers?
Add your server