Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: indeed on June 20, 2016, 09: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.
-
Try using Mouse look and rotate the Camera Node with it
-
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.
(http://i.imgur.com/5ifuyBu.jpg)