My Kart Model is jittery when driving on slopes

  • What are you attempting to achieve? (Keep it simple and clear)

I am attempting to get my kart model attached to the player character to rotate accordingly to a slope when it drives on it.

  • What is the issue? (Keep it simple and clear - Include screenshots/videos/GIFs if possible)

when the kart is on the sloped surface, it begins to act jittery.


it is worse when it drives on the slope sideways:

  • What solutions have you tried so far? (Have you searched for solutions through the Roblox Wiki yet?)

Currently the system uses welded parts to the player that move the contraption to the slope. I have tried using one flat part for this, but results were the same.
I have also tried to edit the upper/lower angle values and make them bigger on the ball socket, which also changed nothing

Here’s the rblx file with the kart and a slope to test on:
JustTheKart.rbxl (119.0 KB)

(sorry if this is the wrong category I haven’t been signed into the forums in a bit)

1 Like

do your wheels turn or are you just applying velocity to the vehicle
edit: I’ll see the file

ok so I turned all these to cancollide = false

image

and it stopped jittering, though I noticed your system makes the rotation of the vehicle not depending on the surface. No idea how to fix that, the scripts are just too long and I’d have to look at them for a while to understand.

Yep did some testing on that a few hours ago and got to the same conclusion. I was attempting to use collision on those in order to get the kart to rotate, but it seems that the physics of those take priority over the player. (I am using a humanoid because roblox players wouldn’t roll down slopes like a normal roblox car would)

also, the wheels “turn” visually, through a couple of extra wheel sets that are made visible and invisible. The wheels don’t actually affect movement. (or at least shouldn’t)

I’m considering using raycasting from the wheels and doing math to rotate the kart if I can’t think of something soon.

1 Like