Skip to main content

Questions tagged [waypoints]

0 votes
1 answer
709 views

I have a list whose elements are Vector2 points in world space: (9, -9) (9, -13) (5, -13) What I want is that my enemy character should first go to (9, -9) ...
gunza's user avatar
  • 13
1 vote
1 answer
430 views

I have a waypoint script I use to control enemy patrol movement in a given area. I use a reference to the Sprite Renderer to change the sprite facing direction. It starts with flipX set to false, by ...
TBG's user avatar
  • 25
0 votes
1 answer
138 views

I try to make a navigation/waypoint system. Well I have a concept but no idea how I could create this system. Well here's an image and an explanation: You can see 3 waypoints as well as an goal and ...
Leocat's user avatar
  • 49
0 votes
1 answer
2k views

I have a top down Car Game. how can I implement AI for the Cars? how the car follow the way points? I want AI cars also rotate itself along the path. I tried this solution ...
Sh.Adel's user avatar
  • 191
0 votes
0 answers
285 views

I have a single lane road and I want cars to drive along it. I want variables such as car speed and gap lengths between cars to be changeable. I have already implemented this simply using a Waypoint ...
rafvasq's user avatar
  • 123
0 votes
1 answer
246 views

I come up with this code and I try to get the waypoint + 1 when I reach the waypoint and it adds up till the last waypoint. I get Array is out of Index error. I guess I need and foreach loop of ...
Daniel's user avatar
  • 141
1 vote
1 answer
259 views

I want to simplify my code. I had the idea of making an Array of waypoints[] and and int i to count up each time I arrive a new point of waypoint but it should be the same way my code is but instead ...
Daniel's user avatar
  • 141
1 vote
2 answers
4k views

I have a player with a Rigidbody, I want it to follow along the Waypoints. I have used MoveTowards but it seems also not to work however. I want to use MovePosition to add force while grinding. I ...
Daniel's user avatar
  • 141
0 votes
1 answer
415 views

I have a player with a Rigidbody, I want it to follow along the Waypoints, I have a script for it I tested it first on a Cube, everything worked fine, but on my character it just moves Towards the ...
Daniel's user avatar
  • 141
2 votes
2 answers
569 views

I'm trying to figure out how to move an object from one Cartesian point to another located on the surface of a 3D sphere. So that the object will follow the spherical coordinate system (Theta and Phi) ...
J. Dove's user avatar
  • 105
4 votes
1 answer
19k views

What I'm using for the scriptableobjects that requires a reference of a gameobject in scene is for scheduling events like for moving. Meaning a scriptableobjects should have a gameobject or waypoint ...
javurtez's user avatar
0 votes
1 answer
118 views

Given a 2D-grid which is defined like below and is used to draw a grid consisting of cells: int[,] grid; //filled with 0 (blocked) and 1 (walkable); I also have ...
チーズパン's user avatar
0 votes
1 answer
65 views

Following challenge: having any number of connected 2D faces forming virtually a polygone and filling the polygone with a variable number of points equally distanced to each other. So here is a ...
Markus Siebeneicher's user avatar
4 votes
4 answers
4k views

In a racing game, I have set up waypoints for the player to follow. I have added many waypoints to give an illusion of curved movement. However, the player car turns instantaneously when passing each ...
idurvesh's user avatar
  • 530