[FSM] Post-update transition evaluation ?

NodeCanvas Forums Support [FSM] Post-update transition evaluation ?

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14367
    w
    Participant

    Hi there,

    In our game we need to transition to the next FSM state immediately (on the same frame) when current state finishes. In the current FSMState implementation, transition evaluations happen before OnUpdate therefore it won’t happen until the next frame. Would you consider adding an optional post-update transition evaluation to the update loop ?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #14370
    Gavalakis
    Keymaster

    Hello there,

    While this has been asked once or twice in the past, the fact that a state change will at least take one frame to happen is really done by design. Won’t doing instant transitions on the same frame potentially result in an infinite loop, if a series of states (that take no time to complete; finish instantely) are connected together and form a loop (eg A -> B -> A)?

    Let me know.

    Thanks!

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.