Change to BTComposite to allow custom sequencers

Forums 💬 NodeCanvas 🗨️ General Discussion Change to BTComposite to allow custom sequencers

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14045
    pjohalloran
    Participant

      Hi,

      I needed to change BTComposite class slightly in order to enable me to write custom subclasses.

      Remove the sealed keyword on the maxOutConnections.

      Could we get this change upstream please if it makes sense for you?

      Thanks.

      #14046
      Gavalakis
      Keymaster

        Hey!

        You can also derive from BTNode if you want to have total control. The included “Binary Selector” node for example, even though a Composite in theory, it derives from BTNode, because it only supports 2 outgoing connections.

        Will it work for you to derive from BTNode rather than BTComposite node?

        Let me know.
        Thanks!

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