So, recently I’ve been very intrigued in creating a custom skateboarding system, and have at least got myself moving, literally.
I’m currently using 2 Vector Forces & 1 Torque Force to make the skateboard move.
The Green Force is a Torque Force, used to rotate the board. This force is applied locally to the board revolving around the Y axis of the middle attachment.
The Blue Force is a Vector Force, used to make the board go straight. This force is also applied locally to the board in the X-Axis, and is only utilized to make the board go forward.
The Red Force is a Vector Force, used for Jumping. This force is applied based on the World, in the Y-Axis so no matter what way the board is facing, it’ll go straight up. (So if you’re riding up a Quarter Pipe you could jump off and go higher, rather than jump away from the ramp)
While this system has worked to move around on the ground, I’ve ran into 3 problems that I’ve spent a fair bit of time brainstorming without any idea of what to do to fix them. So, I’m heading to you guys to see if you guys have any suggestions or background in fixing things.
When you jump, and are moving forward & turning, you still do both of these in the air. The preferred idea is to continue moving forward in the air, but the rotational torque will only spin the board & player, not cause them to turn in an arc.
When letting go of forward, I immediately come to a stop. This is because I set the Force from (2000, 0, 0) to (0, 0, 0) but preferably I’d like to not come to a stop. Because vector is a force, the player will constantly speed up if I setup a constant force so I setup if the player moves above a certain speed, set the force to 0. This works while the player presses W, but doing that check constantly while it’s “idling” around doesn’t work out. (On Server it stops & goes. In the player’s local scripts, it doesn’t limit their speed.)
Stop on a dime without an Idle:
Going up a ramp is a major problem. I believe this is because the character is trying to stabilize itself? (The character is simply the Roblox R15 Character welded onto a block (the skateboard)) I just don’t know what to do to fix that aside from making a custom character, which is more of an undertaking that I think I currently am able to do. So any advice on how to fix this would be greatly appreciated.