Hi, I’m new to Unity so really just looking for a starting point for this. Say I have a set of real-world xy coordinates in a csv file at 1-second intervals. They represent a person’s movement in a set space over time. I want to import these and use them to animate an object (eventually a humanoid character, but just a simple sphere/cube to begin with) along the path that the coordinates against time represents. How would I go about doing that?
First thoughts are:
Would need to translate the real-world coordinates to the Unity Scene
Would need to create a path through all the coordinates
Maybe each coordinate should be a waypoint?
Then animate the object along the path
Any good tips for how to start this? Thanks in advance!
where speed is a property that controls how fast it moves, and nextTargetIdx is the index into your waypoints array (of type Vector3D). When transform.position == waypoints[nextTargetIdx], increment nextTargetIdx.