So, I am creating a 2.5D game in 3D. Is there a reason I am not understanding for using move_toward? It seems like that would be a simple solution for movement. However, I am not familiar with all the 3D engine interactions. I am assuming using this function removes the built in benefits of move_and_slide such as moving up slopes and and graphics interactions?
Is there a reason not to use Vector3.move_toward?
- Edited
- Best Answerset by xRegnarokx
as far as I know, what happens, is it returns an interpolated position between two points, which you assign to the position variable, effectively moving the object. that's it, there's no physics check with the environment, in fact no checks at all as far as I'm concerned besides the method making sure it receives and returns a Vector3 value. there's nothing fancier at all beyond some quick interpolation.
if that sounds like what you want or need, there's no reason not to use it.