How to Move the Cam...
Clear all

How to Move the Camera in and out (not zoom)

2 Posts
1 Users
54.2 K Views
Posts: 2
New Member
Topic starter

Hi there, I am loving the simplicity of the controller however something I missed when playing around with your demo is that the scrollwheel only zooms in the field of view.

I need to be able to move the camera in and out rather than the field of view.

Is there an option for that?




Posted : 29/07/2021 8:22 am
Posts: 2
New Member
Topic starter

I've actually figured this one out in the last 5 minutes. Not sure if it's the official way (and my solution is still a bit rough for now) but it works:

I grabbed an instance of the motor that I want to control.

I use the CameraMotor.Distance property and when I scroll the mouse wheel it reduces the distance by 1 (or increases it by 1 if you scroll the other way).

I've set a min and max distance so you don't scroll to infinity.

Turns out it wasn't too hard 🙂

Again though, your controller is great.


Posted : 29/07/2021 8:49 am