Reply To: Rotate as long as key is pressed

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

#14129
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.

    [attachment file=”BTRotate.png”]

    [attachment file=”FSMRotate.png”]

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

    [attachment file=”ExecuteFunction.png”]

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