playMaker

Author Topic: Mouse drag to rotate entire scene?  (Read 407 times)

indeed

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Mouse drag to rotate entire scene?
« on: June 20, 2016, 06:35:54 AM »
Hi, I have a 3D scene I want the camera to rotate around on only the Y axis. I have a null at the center of the scene as the parent of the camera. By manually rotating the null on its Y axis, I get the effect I want. But I don't know how to do this via a mouse drag with inertia.

I did search the forums and found posts related to mouse dragging, but I couldn't figure out how to apply any to this exact case. Curious if anyone has any thoughts about best practices here.

phannDOTde

  • Full Member
  • ***
  • Posts: 233
    • View Profile
    • Peter Hann .de
Re: Mouse drag to rotate entire scene?
« Reply #1 on: July 02, 2016, 01:58:17 PM »
Try using Mouse look and rotate the Camera Node with it

indeed

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Mouse drag to rotate entire scene?
« Reply #2 on: July 15, 2016, 08:11:11 AM »
Ok I tried using MouseLook but I'm trying to figure out how to add momentum/smoothness.

I start by using a "Get Mouse Button Down". Then I enter a new state where MouseLook rotates the Null the that is the parent of the camera. This seems to work. But what I want is for when the mouse button is released, the rotation slows to a stop, rather than stopping immediately.