Skip to main content

Questions tagged [path]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
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 ...
fqs's user avatar
  • 1
1 vote
1 answer
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 ...
Lewis Cianci's user avatar
0 votes
1 answer
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: ...
NEWBIE's user avatar
  • 23
1 vote
0 answers
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 ...
Alejandro's user avatar
0 votes
1 answer
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 ...
Daniel Kharis's user avatar
1 vote
1 answer
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: ...
EEAH's user avatar
  • 113
2 votes
0 answers
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 ...
AngryTriangleCola's user avatar
2 votes
1 answer
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 ...
Oro Portaluri's user avatar
0 votes
0 answers
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 ...
ina's user avatar
  • 294
0 votes
1 answer
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
0.0's user avatar
  • 1
0 votes
1 answer
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 ...
i'm ashamed with what i asked's user avatar
0 votes
0 answers
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 ...
CraftyMaelyss's user avatar
0 votes
0 answers
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 ...
Toby van der Veer's user avatar
0 votes
1 answer
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 ...
Düsüngülü Tibor's user avatar
1 vote
1 answer
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 ...
Standard's user avatar
  • 485
0 votes
1 answer
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 ...
mohan's user avatar
  • 1
1 vote
2 answers
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 ...
olawrdhalpme's user avatar
0 votes
1 answer
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 ...
Boneco Sinforoso's user avatar
0 votes
2 answers
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): ...
Boneco Sinforoso's user avatar
0 votes
1 answer
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): ...
Boneco Sinforoso's user avatar
0 votes
2 answers
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. ...
Boneco Sinforoso's user avatar
0 votes
2 answers
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 ...
Boneco Sinforoso's user avatar
0 votes
2 answers
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 ...
Boneco Sinforoso's user avatar
0 votes
1 answer
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 ...
Albert Beaupre's user avatar
0 votes
2 answers
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 ...
Seif Karoui's user avatar
1 vote
2 answers
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 ...
nunesgrf's user avatar
0 votes
1 answer
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 ...
Boneco Sinforoso's user avatar
0 votes
2 answers
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 ...
Boneco Sinforoso's user avatar
0 votes
1 answer
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 ...
Mira's user avatar
  • 139
4 votes
1 answer
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 ...
Артем Носов's user avatar
0 votes
0 answers
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 ...
The Gugaru's user avatar
1 vote
2 answers
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 ...
jpwrunyan's user avatar
  • 111
4 votes
3 answers
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 ...
dwursteisen's user avatar
0 votes
1 answer
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, ...
azemda's user avatar
  • 128
1 vote
2 answers
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 ...
John Smith's user avatar
  • 1,255
1 vote
1 answer
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 ...
Steve's user avatar
  • 11
0 votes
1 answer
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 ...
Xarbrough's user avatar
  • 121
0 votes
1 answer
5k views

Follow a path in Unity

I want to know how I can make this game object follow the specified path in unity
ABE_Mark45's user avatar
0 votes
3 answers
329 views

Unity - Where should downloaded level data be stored?

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. ...
Dean's user avatar
  • 1
4 votes
1 answer
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 ...
Daniel_1985's user avatar
3 votes
1 answer
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 ...
David Sleep's user avatar
1 vote
0 answers
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 ...
Vikneshtk's user avatar
3 votes
2 answers
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 ...
Pingu's user avatar
  • 33
7 votes
2 answers
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 ...
Bloke's user avatar
  • 101
3 votes
1 answer
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 ...
lvictorino's user avatar
  • 2,624
4 votes
1 answer
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: ...
AturSams's user avatar
  • 10.5k
2 votes
2 answers
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 ...
Andrei Yusupau's user avatar
2 votes
1 answer
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 ...
Andrei Yusupau's user avatar
2 votes
1 answer
221 views

A* Path Finding Loops Forever

For, hours, I've been following these instructions. ...
Lucien's user avatar
  • 1,176
2 votes
1 answer
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 ...
Jaspreet Singh's user avatar