playMaker

Poll

How to rotate an object on the Z axis with the mouse?

Should I use "Smooth Look At"?
0 (0%)
Or do you use something else?
0 (0%)

Total Members Voted: 0

Author Topic: How to rotate an object on the Z axis with the mouse?  (Read 876 times)

Sugimoto

  • Playmaker Newbie
  • *
  • Posts: 3
How to rotate an object on the Z axis with the mouse?
« 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.)

nuFF3

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 74
  • Are we even real?
    • One Month Studio
Re: How to rotate an object on the Z axis with the mouse?
« Reply #1 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.

Sugimoto

  • Playmaker Newbie
  • *
  • Posts: 3
Re: How to rotate an object on the Z axis with the mouse?
« Reply #2 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.

Sugimoto

  • Playmaker Newbie
  • *
  • Posts: 3
Re: How to rotate an object on the Z axis with the mouse?
« Reply #3 on: July 22, 2020, 01:02:23 PM »