#Sliding
1 messages · Page 1 of 1 (latest)
vectorforce for momentum and speed
and raycasting and using the normal for alignign the player
one way u can do the slope speed up thing is check for a change in the character's Y. if that Y change is negative and ur on the floor u should gain speed,
** You are now Level 3! **
how would I go about using raycast normals for player alignment?
i personally used a linearforce for when i did it since vectorforce i believe applies an impulse every frame? so the momentum would go up rather than down
you can use an alignorientation and use the raycast normal with cframe.frommatrix(
make sure ur aligning the rootpart, not the torso tho
i havent really used normals all that much, maybe something with alignOrientation like gamingNoob said
https://create.roblox.com/docs/reference/engine/classes/LinearVelocity so I should use this
oh ok
you could prolly search “how to align player with raycast normal” and find something on the devforum
also u probs shouldn't check if it's negative u really should be subtracting the speed from however ur handling the speed (so if the y change is negative and you subtract it, it's the same as adding to the speed but if the y change is positive and ur subtracting it then that works)
i remember seeing a video guide on how to make something similar
that's what i did but it can lead to some weird fling bugs so be careful with it
oh ok
what i did to counter that is i checked if ur about to hit a wall with a raycast
lemme go try to find that video guide i mentioned
wdym momentum goes up
like if u apply an impulse every frame, ur speed would go up since ur gaining more speed and ur character doesn't have time to slow down so ur momentum goes up
i think that's how it works idk tho
oh wth thats weird ill test it out
i remember a while ago i tried to make a slide using vectorforce and i noticed that when i would slow down the force, it would slow u down very quickly
like u would start sliding, stay at max speed for a bit, and then within around 1-2 seconds you would insta slow down to minimum speed it was weird
https://youtu.be/gz_auCthrTc?si=lL6EbffCdFItSuDb found the link the person explains it quite well but it is later into the video
Howdy! How's everything going?
Hope you enjoy the contect — don’t forget to like, comment, and subscribe if you're feelin’ it. 🎮🎬✨
If you like what you see, don’t forget to like, comment, and subscribe for more.
Interested in a commission?
🔹Here's my Discord Server : https://discord.gg/DGVvhxDTBb
▫️Roblox Profile : https:...
Thank you so much