# Questions tagged [path]

The tag has no usage guidance.

56 questions
Filter by
Sorted by
Tagged with
36 views

### Generate Path3d procedurally and avoid it intersecting with PhysicsBody

Godot Version 4.3 Question how to generate Path-3d procedurally and avoid it intersecting with PhysicsBody3D. This 3d-path will connect two StaticBody3D. The start and end points of Path3D point ...
• 1
1 vote
63 views

### How can I constrain a RigidBody ball to move along a path, but only apply forces to keep the ball on the path without adding velocity?

I'm currently working on a game and I'm hung up on this particular issue. I have a ball that is a RigidBody. The RigidBody is ...
• 111
91 views

### Path3d Offset from GlobalPosition

my path3d node is several meters away from the global position.My transform are not changed from their base setting. Code: ...
• 23
1 vote
61 views

### Changing speed between points of path Unity

I am using the Bézier Path Creator to create paths for an object. The idea is that I have a matrix of arrays like this this: [time,X,Y,Z] The objective is to ...
250 views

### Procedural Path Generation

I've been trying to make an algorithm to procedurally generate a path from a tile map attached below. I'm just looking for a method to go about doing this. EDIT: I want to make a path for a tile map ...
1 vote
435 views

### Generate random line path with no intersection

The idea is to generate a path with a certain distance m. Currently the generation pseudo code is as follows: ...
• 113
67 views

### Help with Flight Path Modeling

I am looking for some input on how to realize a feature I would like to build into my game. (Not technical implementation, just what kind of mathematical models or algorithms would fit my situation ...
1k views

### Given a 2D array, how do I generate a random path of fixed length from a random point at length 0 to a random point at max length?

I'm trying to generate a random path on a 2D grid given that: The width and height of the grid are given The length of the path to generate is given The path can't move "back" The path ...
910 views

### Load Material from file path or parse .mat file to Material - Unity

Is it possible to load a material from a file path? Or, otherwise parse a .mat file saved on disk to a Material usable at runtime? I had naively thought it would be possible to assign the bytes from a ...
• 294
256 views

### Moving object parallel to another on path on 2d space

How to Move object parallel to another on curved path on 2d space
• 1
237 views

### Directory.CreateDirectory() created a folder with name that was supposed to be a file

i am experiencing some problem here , i have a path : "/folder/folderagain/file.xml" i tried to use Directory.CreateDirectory() to create all folder (in case one of them is missing) and then reuse ...
379 views

### How do I create a tile-based footprint trail?

Currently I am working on a quick game for some friends, but I don't know the proper name for this type of game, so here is an example of the mechanic in The Lion King II: To unlock the exit, you ...
98 views

### How do I get the id of an object that created a point in a path?

I'm making a rollercoaster tycoon type game. As the title says, I need to get the id of an object that created a path point. These points are currently greated by the rail pieces. I need this because ...
63 views

### Alternative path not working

I am using Android studio (libGDX), and I can't figure out why alternative paths doesn't work. I've tried it as it said in the book, but it doesn't do anything, it shows a black window and than the ...
1 vote
161 views

### Let a point drive on a polyline

I want to create a polyline which should be quite smooth for my game. A point is following moving on the line, but can accelerate/brake and has to get slower in corners. In the end I want to set up ...
• 485
65 views

### Calculating projectile path when fired at an angle, forward

I have a problem to code the path of a projectile from a gun as it moves forward and upward. This needs to be done in p5.js. Although the Angry Birds method has been tried by me, I am looking for a ...
1 vote
307 views

### Correct way to handle A* no pathing?

I'm developing a little game for fun and I wrote a pathfinding system based on the A* algorithm. What is the best or correct way to deal with unavailable paths? A* by default will go through every ...
95 views

### Formula for calculating time difference regardless of speed

See the following situation: The first car has a speed of 10 pixels per second and completes one lap in a circuit in 84 seconds. I want the ...
162 views

### How to make a more accurate lap time? get_timer() LIMITATION?

In the room there are 22 cars. All cars have a different speed. The cars are numbered from 1 to 22 with the help of the variable carNumber. CODE - obj_Car / Set car speed (Create Event): ...
38 views

### Problem displaying drawing of a path in camera/viewport

I have an adm object, which draws the path in the room like this (Object ADM - Draw Event): ...
90 views

### Help for sorting cars that are 1 lap behind the others (latecomers)

Think of 22 cars running in circuit. I can sort them based on the order they reach the finish line. I start to have problems, because over time, the faster cars start to reach the slower cars. ...
532 views

### How to draw the path with a thicker stroke?

I have a game where objects follow a path that resembles a circuit (f1, nascar, stock car). Using the draw_path function, I can draw the circuit on the game screen: It turns out that dash got too ...
4k views

### How to make a homing projectile make a more objective path to the target?

I'm having trouble trying to get a projectile thrown by a tower to hit the player quickly. See the image below: The projectile hits the ground very close to where the player was. If the player did ...
2k views

### Infinite Loop in AStar (A*) Algorithm

Alright, so I've run into a problem where when trying to find a path that you cannot reach because it is blocked, it will continually loop and loop and loop (the 'open' list is ALWAYS filled). I ...
4k views

### How to make a car follow a path?

I have a 2D game and my goal is to make a car follow a path (the road in the picture) and rotate in the same time. I tried a plugin in the assets store but it didn't work well for me and i had ...
1 vote
3k views

### Using delta time for movement

I'm currently involved in a college assignment where we must create a game with our own game engine. In my game, we have an enemy moving around with paths constructed with a A* algorithm. Every frame ...
• 19
65 views

### Error in the order of the target points to be followed. How to set the order of elements in an array?

I have a project where it has 1 NPC and 3 target points: In the project I set the NPC to go to target point 1, then to 2, then to 3. Expected path: Path that is occurring: This problem did not ...
3k views

### How to make specific paths in UE4?

I have a project where I have 1 character (playable) and 2 NPC's (AI). The NPC's are programmed to meet 2 target points. Below is an image to facilitate understanding: As you can see, this green ...
600 views

### How to change object curve path in playmode in Unity?

I would like to make some sort of this simulation below, where user can interact with the white rod and drag it into the magnetic fields, which in resulting the blue line that represent the magnetic ...
• 139
4k views

### Creating random path in grid

I need to find a path with required length in the NxN matrix without loops and deadlocks. For example: We Have a grid 7x7 (49 blocks in total) with START (orange) point. We need to build random ...
• 143
86 views

### Unreal Expose Terrain Layers via a blueprint

I have the below play area and I have 4 terrain materials defined in a material and attached to the terrain. What I want to achieve is a way to use a blueprint to expose the pathway layer through the ...
• 145
1 vote
680 views

### Find hexes on a hex grid given an angle

I'm trying to find an elegant solution to calculating the x, y values of hexes that are crossed or intersected by a line or ray at a given angle from a given hex position on a hex grid. I do not want ...
• 111
1k views

### How to create a boomerang-a-like path?

For the GitHub Game Off Jam, I plan to create a small game with a boomerang. But I don't know how to build the equation that will update the boomerang position. I try to build a direction vector and ...
• 171
3k views

### How to draw a NavMesh Path to a destination without traversing the path in Unity3d?

I have a set of pre-determined destinations. When the user chooses any one of those destinations, the path to the destination should be drawn, similiar to google maps. I am trying to do this in unity, ...
• 128
1 vote
2k views

### Pool game ball path line

I'm using Unity C#. How would I create the effect in my pool game, a line showing the direction of the second (not white) ball after collision. Example: I need to make the line coming from the ball ...
• 1,255
1 vote
80 views

### Objective C Path

I am looking for some help on what would be the best approach to create a path from one point in a grid to the other side. Imagine a grid of 5 x 5, where at (0,1) there is a light source pointing ...
• 11
123 views

### Recognize that user has traced a path of vector points with mouse

How can I check if a player has traced a closed vector shape from an arbitrary starting point all the way around to the beginning? Setup Given are the vector points A through E, which form a closed ...
• 121
5k views

### Follow a path in Unity

I want to know how I can make this game object follow the specified path in unity
329 views

I've been looking around and it appears suggestions are only to store data to UserPrefs, or PersistentDataPath. I intend to have map files streamed to the client on demand, and saved for reuse. ...
• 1
447 views

### How can I create a world map like Mario 3's?

I want to create a world map similar to the type that Mario 3 on NES uses where Mario can walk between levels (nodes?) by pressing up, down, left and right on the controller, and Mario can only pass ...
• 629
1k views

### How to do multi-agent 2d pathfinding when agents can block each other?

I recently restarted on my long time game development project and had a few questions about how to improve my games AI. I am a little stuck on the best way to implement my Enemy path finding when ...
• 133
1 vote
69 views

### Making an 'anim in circular motion' get attracted by gravity of the center

I am working on a project, where the main player anim is in circular motion with respect to a center point. This video shows what I have done to the anim till now. In that video, there are multiple ...
618 views

### How to find the optimum path, on a road, for a car?

For the moment I have an AI car, that follows points (let's call this Waypoints), that I built by myself. Of course, it's not optimal because of my poor human hand, and car knowledge. After this ...
• 33
337 views

### Bike game - following a road path

I am writing a game in java which has a bike riding down a road. I intend to add some obstacles on the road which are structures having a slope, which the biker must negotiate. In other words, the ...
• 101
803 views

### Pathfinding to unknown destination point

Usually you need path finding algorithms to find one or the best path between two points. Do you know if path finding algorithm where you don't know the destination point exists? I have a graph made ...
• 2,624
77 views

### Lazy way to figure out the two sides of a border?

We have a 3d model. There is a simple path on that model's surface graph G of the form: ...
• 10.5k
322 views

### How to stop Follow Path steering behavior when reached target?

I'm using libgdx Follow Path Steering Behavior in my top-down game. When unit reaches the end of the path, it goes to the start (not directly, but following path), then to the end and so on. How to ...
678 views

### libgdx FollowPath proper usage

I'm developing top-down rpg game and got some problems using https://libgdx.badlogicgames.com/gdx-ai/docs/com/badlogic/gdx/ai/steer/behaviors/FollowPath.html I have a path (picture 1), in this case 2 ...
221 views

### A* Path Finding Loops Forever

For, hours, I've been following these instructions. ...
• 1,176
162 views

### Find alternate shortest paths in Unity

I'm developing a game in Unity. It's a simple game where the rocket has to reach the point where the player touches on the screen. The movement of the rocket is physics based. When the rocket goes off ...