bug in move to position

NodeCanvas Forums Support bug in move to position

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

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

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

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

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