playMaker

Author Topic: Target Locking with LookAt but Player rotation reset  (Read 1318 times)

Necka

  • Playmaker Newbie
  • *
  • Posts: 2
Target Locking with LookAt but Player rotation reset
« on: February 20, 2018, 10:02:01 AM »
Hello, new Playmaker user here and with that, my first issue :)

I'm almost sure I'm missing something really obvious, so don't blame me but he here it is:

I built a simple target locking system which get the closest object with the Enemy tag. Then do a look at the object on button hold.

My issue is, when I release the lock button, the character go back to its initial position.
I tried adding a get rotation (of my player) while button is hold and then a set rotation on the first state, but nope, player keep reseting its position.

Here is a short clip of the issue that shows my different actions:
Am I missing something or doing anything wrong?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Target Locking with LookAt but Player rotation reset
« Reply #1 on: February 21, 2018, 01:35:00 AM »
Hi,

 no worries, all questions are welcome :)

you certainly have another part of your logic that is doing this behaviour, I would turn off features one by one until you find what fsm or component does bring it back to position.

Since you are using a controller that seems to come from the asset store, I would contact the author and explain your case, the likely answer is that you need to rotate your character via that system and not controlling the rotation directly.

 bye,

 Jean



 Bye,

 Jean