Panda3D: How to configure mouse buttons for camera control? -
by default, mouse buttons assigned camera control as:
- left: translate
- right: zoom
- scroll/middle: rotate
how change these mouse button bindings want this?:
- scroll/middle: zoom
- left: rotate
- right: translate
i can see default mouse bindings camera control set in directcameracontrol.py
. but, how can change them main class derived showbase
?
the camera controls in directcameracontrol
separate default controls, , changing these settings not affect default camera. default controls hardcoded in panda/src/tform/trackball.cxx
; presently not possible change these.
the default camera controls intended development , debugging. purposes, you'll want use base.disablemouse()
disable default camera controls , develop own camera control code.
Comments
Post a Comment