Answer by Brett_MMU
what I do is tag my waypoints, then add a start function like this (it's in C# but I imagine it's the same for JavaScript) Start() { waypoints = GameObject.FindGameObjectsWithTag("waypointTag"); } If...
View ArticleAnswer by Brett_MMU
If you need them in order then you'll have to do something to each waypoint to make it identifiable. If you don't have many waypoints the easiest thing to do would be to tag each waypoint as waypoint1,...
View ArticleAnswer by Brett_MMU
var waypoints : GameObject[]; var sortedWaypoints : GameObject[]; function Start() { waypoints = GameObject.FindGameObjectsWithTag("waypointTag"); sortedWaypoints = new GameObject[waypoints.length];...
View ArticleAnswer by Brett_MMU
Add Debug.Log(currentWaypoint); Debug.Log(sortedWaypoint[0].transform.position); after that line and tell me what you get
View ArticleAnswer by Brett_MMU
on your player rotation code you have "transform.Translate(Vector3.right );" when the left key is pressed down, this is being added to the transform.Translate that occurred in your movement code, as...
View ArticleAnswer by Brett_MMU
The actual Biped you see in 3DS max is just a visual representation of the animation (the biped disappears when it's exported). You need to create a 3D model, or get one from something like turbosquid,...
View Article