Hi, I issue a problem I don’t understand.
I have a game object with a factory component, localted on (0,0,0) position in my collection, when I spawn an object from that component, I make this object move to the opposite side of my screen, in a straight horizontal line, using go.animate.
Here is my problem, the spawned object goes diagonally, I printed the coordinates of each locations, the spawn location and the targeted location of the go.animate, and the Y coordinate is always equal…
For example :
spawn location : (0,480,0)
targeted location : (1280,480,0)
If the Y coordinate is the same how can it move on a diagonal?
I know the spawn location is relative to the game object holding the factory component but remember that this game object is located to (0,0,0) so the origin is the exact same point…
Thanks for reading