#How to stop camera inputs?

1 messages · Page 1 of 1 (latest)

old radish
#

I'm trying to implement dragging on a RigidBody3D node and I want the camera input events to stop working when the node is dragging, for GUI nodes I believe it's possible to use the accept_event() function to stop events from propagating, but how can I do it from a RigidBody3D or Camera3D node?

vast trellis
#

You can just do if Input.is_action_pressed("click"): return
in your movement code. That way it will not work while the mouse button is held.
You'd need to define the "click" action in the InputMap first.