Cart moves whenever I apply any force to it

Hello. I have a problem - whenever I jump into a cart that I made, it moves. How can I avoid this? Thanks

1 Like

Add a part behind the tracks so it doesn’t fall off.

2 Likes

What is controlling the cart movement?
If it’s controlled by physics you need to ‘put the brakes on’ when the cart is sitting still.

2 Likes

Does it have brakes? If not, it might be because of the slight misalignment of the rails. You could try what @Arylist suggested. Cart moves whenever I apply any force to it - #2 by delinquenst

2 Likes

No, it does not have brakes. How would I fix that? It is controlled by physics.

1 Like

Yes, but how are you controlling it with physics? You have to keep it from moving but we can’t help if you don’t let us know how you are making it move.

For example if you use HingeConstraints in the wheels to move the cart, then set the MotorAngularVelocity to 0 and use some MotorMaxTorque to keep the wheels from turning. I’ve used huge numbers here before but the wheels start to glitch out, try a number like 5000 first.
If you use a VectorForce to keep it from moving and you set it to 0 then the cart can still be pushed by outside forces.
In some cases an AlignPosition might help out (similar to the old BodyPosition).

2 Likes

Hello. What are hinge-constraints and how would I add them to my cart? I only want the cart to move forwards/backwards.

1 Like

You still haven’t answered my main question. How are you controlling your cart?
I know some people have put HingeConstraints on each axle so the wheels rotate, and they spin the wheels to move the cart.
Other people CFrame the cart from point to point to get it to move.
Others use BodyVelocity, or VectorForce, or other physical movers.

You HAVE to tell us how you are moving the cart along the track so we can help you.

When you need help with topics always search the create.roblox.com site and use the Search button. For example, when you go there and type in HingeConstraint you get links like these.
HingeConstraint | Roblox Creator Documentation
Creating Spinning Objects | Roblox Creator Documentation
Building a Ferris Wheel | Roblox Creator Documentation

3 Likes

Hello. I put a Hinge Constraint on the wheels, but I’m having issues on how to weld the wheels to my cart, since when I do they stop working. Also how do I make a brake with HingeConstraints? Thanks

1 Like

I deleted this post, please ignore.

1 Like

Hehe, why in the heck would you weld the wheels to the cart? That’s what the HingeConstraints do!

When you go into your Model tab in studio and look in the Constraints tab you’ll see Add and a dropdown appears. Select HingeConstraint and then click on the cart body. A green Attachment sphere will appear (don’t worry too much about the location yet), then when you move your cursor you’ll see a red line joining the attachment to your cursor position.
Click on the wheel. Another attachment will appear.
Use the move tool and put the second (wheel) attachment at the center of the wheel. Copy the Position of the Attachment and then click on your first (cart) attachment. Paste the copied numbers into that attachment’s Position. Now they are joined there.
Rotate the attachments if necessary to make sure the yellow arrow points like an axle, facing outward. The orange isn’t too important now.
Make sure the first attachment orientation arrows are the same as the second one to align them.
Weld the wheel you just put the HingeConstraint into to the wheel on the opposite wheel of the cart. This basically forms an axle between the 2 wheels.

2 Likes

Ok, so I only need one hinge constraint between 2 wheels? And I connect them so that they are welded together and the hinge constraint works as an axis?

2 Likes

Don’t start another thread.
It’s basically the same issue, so keep the thread in one place instead of linking other threads to this one. Please delete the other post so there isn’t any confusion.

To keep a HingeConstraint from turning (brakes) just set the AngularVelocity to zero, and the MotorMaxForce to something like 100,000 for starters.

And yes, like I already said, you just made an axle with the welds between the wheels.

2 Likes

image
image
I made both of the attachments exactly the same
And put the hinge constraint in the other wheel
Now how do I weld the wheels to the cart?
Since the wheels just fall off the cart
image

1 Like

How do I weld the wheels to the car so that the wheels can still rotate?

1 Like

Don’t weld the wheels to the cart.

One attachment is in the cart (Attachment0). It shouldn’t be in the other wheel.
One attachment is in the wheel (Attachment1). You have this as the FrontRight
This lets the wheel spin or drive the cart.
Weld the left wheel to the right wheel so they both spin together.

If you have a common axle it doesn’t matter where the location of the Attachments are along the length of the axle, both wheels will spin and be firmly attached to the cart through the HingeConstraint.

If they still fall apart make sure that in the Properties window the Attachment0 and Attachment1 boxes are actually attached to the correct point. I’ve copied or deleted items and those boxes still reference where the HingeConstraint used to be attached, but those items aren’t actually there anymore and cause confusion.

If you select the HingeConstraint it will highlight both the Parts that are attached through the Constraint with a green box. This lets you know they are connected through the Constraint.

2 Likes

Alright. What weld should I use to weld the two wheels together? Just the normal weld?

1 Like

A ConstraintWeld is the easiest.

2 Likes

Alright. I have this now:

image
I created a hinge constraint between the wheel and the cart, and put the attachments at the same place. Then I added a weld constraint on the other side
What else do I have to do to make this cart working?

2 Likes

I also have this problem for some reason?

image
I have set all of the forces to 0, but this still happens?

2 Likes