omni-directional drive

I’ve been googling, but I can’t seem to find anyone who has done this. I am making a game that uses robots that can drive in all directions (forward, back, left, right, rotate), but I cant seem to achieve that with wheel colliders. In real life it would be something like a mechanum drive or swerve drive. I have tried setting the angle of all the wheel colliders to the angle based on the joystick and then applying torque to them based of the magnitude of the info fed from the joysticks. This causes pretty slippery movement. If you even start moving the robot will turn which makes no sense. I also tried using the rigidbody’s velocity, but it seemed too loose as well because when you would change directions and go perpendicular to where you were heading before you would keep drifting off in the original direction. So what is the best method of dealing with this situation? Tinker more with wheel colliders, improve the velocity based movement, or some 3rd option that I don’t know of?

wheel colliders can be a bit iffy around moving in a straight line, even on a flat surface.

the slipperyness is to do with each wheel colliders forward and sideways friction… sounds like more playing is required.

consider finding a car tutorial to get a better understanding of wheel collider usage.

Ten years later and I had a similar idea.

Still trying to work out a mecanum drive.
Please let me know if you ever found a solution!

Do not necro threads like this. If you have a question, create your own thread please.

Also, please use the correct forum: Physics.

Thanks.