Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Sugimoto on July 16, 2020, 08:03:43 AM

Title: How to rotate an object on the Z axis with the mouse?
Post by: Sugimoto on July 16, 2020, 08:03:43 AM
Hi Everyone

I am making a third person shooter.

Attached is a video link about my question.

This character has a bow, so the left-hand side is the direction of travel.
I wanted to use "Smooth Look At" so that I could operate the upper body with a mouse. The left and right movements work well, but the up and down movements do not work well. If the "Z axis" can be controlled by moving the mouse up and down like at the end of the video, I think I can solve it, but I do not know how to do it.
Teach me Please.
(I'm not good at English I use Google Translate.)
Title: Re: How to rotate an object on the Z axis with the mouse?
Post by: nuFF3 on July 19, 2020, 08:59:20 AM
I think you've already partly solved it yourself, since the "AimLookAt" object follows the horizontal mouse movement, but not the vertical movement.
If that is what you want, then you have to let that object follow both X and Y of the mouse. Or Z and Y in your case.
Title: Re: How to rotate an object on the Z axis with the mouse?
Post by: Sugimoto on July 22, 2020, 12:59:23 PM
Hi, nuFF3
Thank you for your reply.
After that, I repeated various experiments. Finally I used "Animation Rigging" to solve the problem. It works like this.
Title: Re: How to rotate an object on the Z axis with the mouse?
Post by: Sugimoto on July 22, 2020, 01:02:23 PM
This video was helpful.