gameObject.transform.position not working properly
hey guys, so i want to "transport" my object into certain posisition or coordinat
this part of the code :
if (gameObject.transform.position.x <= -49.7f) { gameObject.transform.position = new Vector3(49.08f, 0.0f, 0.0f); }
while the object correctly move to the X coordinat, but not on Y coordinat, its always got to 0.404f on the Y coordinat, i already tried everything i know, but no avail, including restarting the unity3d
You are saying your character can only move through the x-coordinate, as it is intended. But the transform.position.y value of the gameobject is somehow at 0.404f while playing?
hey i dont know what happen, but it seems i accidentaly double post, can you help me here, the more constructed one http://answers.unity3d.com/questions/1198452/gameobjecttransformposition-not-working-correctly.html
Your answer
Follow this Question
Related Questions
Unity not working ( Win 8.1 and Win10 x64) 0 Answers
Gray screen when trying to open unity. 7 Answers
Level Start error :/ 1 Answer
Video Stream in Windows 0 Answers