I’ll explain in very broad strokes here:
- Your camera would need to define
something like DesiredDirection
variable. (maybe on your vehicle) - Your vehicle should have something
like MaxTurretRotationSpeed. (This
will be per second) - Every frame (TickEvent) in your
vehicle you should rotate your
turret by
MaxTurretRotationSpeed*DeltaTime
towards your DesiredDirection until
you reach it.
Happy coding ![]()