Hi Community,
i stuck on this now for about 4 weeks. My Brains stops working and i need help. There is an array of Vectors coming from a AStar. How to move along them is clear. Can make this with velocity, set the position directly or create a path to move along. But the object should move like along a path but without a path. Better to explain this with the following image:
From point to point without a path. I also have tried to make it with bezier(via lerp). But then the speed is different cause the distances are not equal. A corner and a diagonal movement got not the same length. I can feel that i overlooked something easy to solve this (hope so ). Like i wrote my brain has dead end now. Pleeease can somebody help me out on this?
Hello herrspaten, thanks for the reply and sorry for the poor explanation. Like i said my brain is broken There are two Probs with this.
First is that it is a character that is walking. So with a path i have to set the position with 0.0 - 1.0. But the paths are changing. So if he reaches the target-point and i click on another one there is a new AStar-path-array with another length. So how could i ensure to ever walk in the same speed?
Second is that there could be moving obstacles in the way like balls, crates or even npcs.
OMG i have done it. Good sleep and the communication was all i needed. The solution was to compare the distances between the points. If it is more then the straight connection, the time value on the bezier must be corrected. Thats all. Hope the image explains it better than the last one.