Reply To: Rotate as long as key is pressed

NodeCanvas Forums General Discussion Rotate as long as key is pressed Reply To: Rotate as long as key is pressed

#11329
Gavalakis
Keymaster

Hello,

Im sorry to hear that. If you have any suggestions for the documentation, by all means do let me know.
There is also actually a scene in the downloadable examples that does what you were after with an FSM.
Bellow are two possible way of doing this, one with a Behaviour Tree and another with an FSM in NC.

BTRotate

FSMRotate

The Action Task used here in both cases is “Script Control/Execute Function” and within which the “Transform.Rotate” function has been selected.

ExecuteFunction

Please let me know if this works for you.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. FSMRotate.png

  2. BTRotate.png

  3. ExecuteFunction.png