#Bouncing from walls
1 messages · Page 1 of 1 (latest)
just find velocity of the character and then do -velocity
you don't know trig? uh, bro, you realize it's 2026 where everyone has a magic device in their pocket with literally all of humanity's knowledge on it at the press of a button, right?
what is this, 1826 and we're still lighting our houses with candles and churning butter by hand? tf 😂
you don't even need to go to a library anymore, the library containing everything humanity knows is in your actual pocket
AND YOU DON'T KNOW TRIG?
wtf
how?
how is this possible?
imagine asking how to learn in the big 2026 when everything humanity knows is at your literal fingertips
get lookVector of camera's cframe
so u can get the backwards direction
then u just multiply it with speed and apply that to a velocity instance
Store the assembly linear velocity you're moving with before landing and once you land send the player with the same velocity but backwards
Or just
local v = Vector3.new(10,-10,10)
And
VelocityToFlingBack = -v
And apply it
And times it by the unit product between the camera and the velocity backwards
i could give you a VERY basic script to use as a base
You can just use Raycasting to get the wall Normal and reflect the velocity off it.
Put this script in StarterCharacterScripts as a local script.
MMy school is so bad that we still didnt learn abt PI
on 2nd grade
and
wwe learning the basics of fractions
or 2nd year idk
@here
not much trigonometry in this math, but you really should learn trig if you want to make games
it's actually really easy
never avoid math
i prefer avoiding math
more likely u would have done it in less than 5 min
or sometimes math is needed so were both correct
it sounds crazy but chatgpt does a good job at math
we all know that he is a ai bro, He knows the whole internet, the chance of math mistakes is barely more than zero, But he dose some mistakes.
Use gemini instead if u want 100% no mistakes
nah the big gpt better at everything than gemini
ig gemini is faster but makes way more mistakes
just outright tells you wrong things
bro i did try chatgpt for years
and he faild me
he cant make any kind of script right
with math or without
gemini lowkey understand better and then u use deep think he will make the best results
he gets the idea better tho
should I close this post?