MoI discussion forum
MoI discussion forum

Full Version: camera moved event (scripting)

From: pressure (PEER)
28 Mar 2023   [#1]
I'd like to have a DistanceInput / NumericInput display the distance between the camera and target as I move the camera using the view controls, mouse, SpaceMouse, etc. Is there an event I can listen for that's fired when the camera moves? Also, what's the difference between DistanceInput and NumericInput?

- Peer
From: Michael Gibson
28 Mar 2023   [#2] In reply to [#1]
Hi Peer,

re:
> Is there an event I can listen for that's fired when the camera moves?

Sorry no there isn't.


> Also, what's the difference between DistanceInput and NumericInput?

DistanceInput is for things that are expressed in units, it will get a small unit system label after it and you can type in things like other units and it will convert.

NumericInput is for a floating point number that is not representing a distance, say like a scale factor or things like that.

- Michael
From: pressure (PEER)
29 Mar 2023   [#3] In reply to [#2]
Thanks for the super speedy explanation of these inputs Michael! It's pretty cool that DistanceInput displays units and handles conversion.

- Peer