![]() |
|
Can I reverse the mouse movement direction of a FirstPersonCamera - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9) +--- Thread: Can I reverse the mouse movement direction of a FirstPersonCamera (/showthread.php?tid=4132) |
Can I reverse the mouse movement direction of a FirstPersonCamera - WillTheGISGuy - 04-14-2019 Can I reverse the mouse movement direction of a FirstPersonCamera? I need to use a FirstPersonCamera, but I'd like to have the scene move with the mouse as a TargetPostionCamera does, as opposed to the camera move with the mouse. Moving the scene seems more intuitive to me. RE: Can I reverse the mouse movement direction of a FirstPersonCamera - abenedik - 04-15-2019 You can reverse the direction of camera rotation with setting IsXAxisInverted on MouseCameraController to true. If you want to reverse the direction of camera movement, then you need to derive your class from MouseCameraController and override the MoveCamera method - for example: PHP Code: public class MyMouseCameraController : MouseCameraControllerAs you see, you can also provide your own logic for camera rotation with overriding the RotateCamera. |