bug in move to position

Forums 💬 NodeCanvas ⚙️ Support bug in move to position

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19568
    loverains
    Participant

      when target vector equal to zero ,the action does nothing,this is a bug

      #19570
      Gavalakis
      Keymaster

        Hello,
        Thanks for the report. My mistake. Here is the fix:
        Open up MoveToPosition.cs and make the private Vector3 lastRequest a nullable Vector3 by adding “?”:
        private Vector3? lastRequest;

        In the OnStop method change:
        lastRequest = Vector3.zero;
        to:
        lastRequest = null;

        This is also the exact same fix for MoveToGameObject and MoveToFromList actions

        Thanks 🙂

        #19569
        loverains
        Participant

          ok,thx for ur rapid support。
          i like this tool very much,expect it more.
          great work and keep on.

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