Hello fellow devs,
I wanted to ask about something important, an issue im facing while developing a game, you see in every game related to cars there is a camera system, the one im trying to achieve is a drifting version, I’ve tried setting two targets, one being the car offset, the other being the car velocity based target (aka the same as offset but follows the LinearVelocity.Unit vector instead) and well to interpolate between them to get the desired outcome!
The issue im having is that when i put the camera (part as shown in the video) to the same concept it jiggles alot and doesn’t give the desired outcome except when the car is moving with high speed!
Ive tried putting system to change parts position instead of the camera:
Green being offset target, and red being the velocity based target
the RedPart (velocity) jiggles ALOT when the car is closing to a full stop,
Here is the snippet of the script im using to change both positions:
Body : is the body (silhouette) of the vehicle
cameraOffset: vector3 defining (0, 5, 15)
workspace.velocity.Position = Body.Position + ((Body.AssemblyLinearVelocity.Unit) * -cameraOffset.Z) + Vector3.new(0, cameraOffset.Y, 0)
workspace.offset.Position = Body.Position + (Body.CFrame.LookVector * -cameraOffset.Z) + Vector3.new(0, cameraOffset.Y, 0)
Please lemme know what should i implement to fix this issue!!