playMaker

Author Topic: Move towards and look at  (Read 1676 times)

TrueSoSense

  • Playmaker Newbie
  • *
  • Posts: 17
Move towards and look at
« on: March 13, 2022, 06:39:52 AM »
Hello,
I am making a FPS game.
I want the body of my character to look at a gameobject, and my camera to move towards the head of the character.
But when I use move towards, It glitches, luckly I am not epileptic...
The only way to stop it is to disable the look at action.
Can anyone help me ?

ChinaUnity

  • Playmaker Newbie
  • *
  • Posts: 16
Re: Move towards and look at
« Reply #1 on: March 14, 2022, 05:26:13 AM »
你的相机控制着身体。所以会出现这种问题?

blackant

  • Hero Member
  • *****
  • Posts: 525
  • http://blackantmaster.com
    • blackantmaster.com
Re: Move towards and look at
« Reply #2 on: March 14, 2022, 07:21:03 AM »
Show your FSM when you ask something precise like that. So we can understand what you did wrong

TrueSoSense

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Move towards and look at
« Reply #3 on: March 15, 2022, 04:12:09 PM »
Sorry to reply late.
It is a video. Hope it helps.

TrueSoSense

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Move towards and look at
« Reply #4 on: March 15, 2022, 04:24:58 PM »
Should I use different animations instead of Look at ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Move towards and look at
« Reply #5 on: March 16, 2022, 04:19:33 PM »
Hi.
How is the camera setup.

is it parented? (most cases not good)
when zoomed in can you get/set position, rotation from the head. (you can have camera as a child of a 'camera' parent(s) to handle separate angles and offset position.

Maybe this video can help a bit :