Search the Community
Showing results for tags 'gotopoint'.
-
I have a player, that can go to a point ( a pivot that is set by a camera pick) When I place the pivot on the same position as a crawler , the player glitches out and freezes towards (0,0,0) and i dont know why. After that you cant move the player. For me it makes no sense why it glitches, since the mosterAi does the same without any problems. http://pastebin.com/1qNrf1YA heres the part of the script that is in the updatephysics function.
-
When I use this function all happens is that the player glitches out. I see that it has been avoided with the DirectMoveToTarget function inside the MosterAi script, which has no pathfinding but just walking straight towards the target. It would still be better to have a path while following a target that may be behind an obstacle, when the function is called. GoToPoint works fine on (for example) pivots in the scene, even when its position is set somewhere else really fast (and the funcion is called once after every position change).