Reply To: bug in move to position

Forums 💬 NodeCanvas ⚙️ Support bug in move to position Reply To: bug in move to position

#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 🙂