How to Move the Cam...
 
Notifications
Clear all

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

heymickdoc
(@heymickdoc)
New Member

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?

 

Thanks

Mick

Quote
Topic starter Posted : 29/07/2021 8:22 am
heymickdoc
(@heymickdoc)
New Member

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.

 

ReplyQuote
Topic starter Posted : 29/07/2021 8:49 am
Share: