How do I prevent normal hinges from going steering direction after release (Car issue)

So I’m working on vehicle, and I made a car relying on bodyforce, everything is fine but as soon as I set my wheel hinges to motor, my car refuses to move, so I assume that hinges being set to none is causing this little steering issue

Are you controlling the hinge motor via script?

1 Like

Nah, I use bodyforce, the constraints are just for the wheels rotation n stuff, but the normal hinges for car to spin the wheels are set to None, but if I try Motor it doesn’t drive

The Motor in the hinge constraint is to allow the attachment to spin to that motor’s parameters… if you want to control how fast or hard the attachment spins on that constraint, then you set it to Motor and apply the parameters, either by setting them there or through script.

If you want your wheels to just spin freely, and the velocity is controlled by the car itself, then leave the constraint on None. If you want the hinge to turn to and from a set angle, set the hinge to Servo and enable and set limits to the angles… it will allow your wheel to turn to only within those angles… freely.

1 Like

The issue is, when I set the hinges to motor and put the parameters in it, it does not spin my wheels

Are you using the QWeld script with the vehicle? If so, the wheel part of the hinge has to be in a model not parented to the model this script is welding, or it will weld the wheel to the car, and allow it to not move. To test your hinge system, I would suggest perfecting it in a baseplate separate from your vehicle first. Then deal with the issue of how to work around the welding in your vehicle after.

Another idea is to import the roblox vehicle in the studio gallery, and study its hinge system to try to recreate.

At this point we don’t know if it is the hinge not working as intended, or if it has been welded and making it not work as intended.

Last question, how are you steering the vehicle currently?

I steer the car with servo hinge, It’s the same hinge I used in my older cars I’ve put the exactly how they were I retried building them but they just refuse to spin, wheel properties are fine, welding is fine I’ve done this before when I used to rely on vehicle seat controls (moved on to body force because you cannot control the car through client, even networkownership did not help with this so that’s why I moved to body force)

I see… and why not just leave the hinge on None… why were you trying to set it to Motor again? You just want them to spin freely correct?

Yes but if I set it to none it makes weird behaviour, whenever I steer with none and release, it still steers a little bit which is annoying especially when u speed, with motor it keeps everything straight n simple

I see now… but with motor you will have to control it via script, there is no other way for it to follow the speed of the vehicle… outside of a script, you can only set it to one velocity, and this won’t work for a car’s wheel.

I feel like i’m missing something, but this is the extent of my help, sorry if this confused you more.

1 Like

All good no stress, I’ll get this figured out at some point thank you for your time

1 Like