Cart moves whenever I apply any force to it

Try adding friction to the wheels in the custom properties.

1 Like

Did you set up the hinges correctly? Remember that you have to make one for each wheel, or you can weld the left side to the right side, and the Attachment1 must be at the same location as the Attachment0.

image

1 Like

I believe I’ve done that, I’ve made 1 for a wheel and welded the wheel opposite to it with a weld constraint

1 Like

There might be a couple issues.
The parts of the cart or tracks might have a Velocity in them already. Check the AssemblyLinearVelocity in all the components.
Another problem could be that if you used MeshParts or Unions for the wheels their shape might not be perfectly round because the flange and wheel would make a convex shape. Cylinders or Ball shaped Parts are best for any rotating parts. You can check out this plugin Mesh Optimization Tools - Roblox to see what the actual physcial shape of your meshes/unions are. If you set the CollisionFidelity property to Precise it may work out, but usually there are small wedges/flat areas that don’t work well as wheels.

Most cart systems also use Parts under and between the rails to keep them on the tracks.
Here’s a post I made a train model for a while ago to help out. How to make a basic train - #12 by Scottifly

1 Like

Yes, I fixed it! It turned out the rails had a velocity in them. Also, another problem was that my wheels were a union, and the discs protruded out a little bit, which cut into the rails and glitched the cart. Thank you so much!

3 Likes

I have a new problem: how do I fix this

My character applies force to the cart when I enter it, how can I make it so that the cart will not move? (without anchoring it)

2 Likes

So we see here, its teleporting to the player’s orientation, but if we want the vehicle to not to teleport with the player, were gonna need more mass, because the player’s force is too strong. If its massless, theres going to be less mass and alot of speed but problems like that, but more mass will have less speed but atleast it wont teleport to the player because its not stronger than the cart.

1 Like

I’ve tried adding more mass to the cart, but when I do the cart jitters a lot. Any idea why this will happen

I’ve identified the problem: For some reason the cart turns towards the player’s camera
I have no idea why this happens, is there a property that can be turned off to prevent this?

UPDATE: it was an easy fix, I just made the character massless.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.