I am currently creating a vehicle without using any of Roblox’s constraints (similar to Jailbreak). It’s going great however I am having issues getting the vehicle to turn realistically.
Given the steering angle and length of a vehicle it isn’t hard to calculate its turning circle radius and therefor the angular velocity needed to turn the vehicle at a given speed.
However in Roblox I’m struggling to apply the angular velocity in the right place.
It’s a hard problem to describe but maybe this image sums it up best.
If I use the BodyAngularVelocity object on the vehicle and apply angular velocity it will rotate from the center of the object.
However this is not how vehicles work, they pivot around the rear of the vehicle as shown in the picture on the right. This means the rear wheel doesn’t follow the path of the front wheel.
Does anyone know how to to this on Roblox? Essentially I need a way to alter the pivot point. I know this is possible to do by CFraming the object but that’s not an option. Currently I am using BodyAngularVelocity but there doesn’t seem to be any way to give this a radius or a specific position.
If you need some more clarification just ask.
I have achieved the intended effect using a hinge to turn the vehicle but this is extremely ugly, only works along a 2D plane.