Search results
21 paź 2020 · I want to get the exact distance between two points to spwan a rope with exactly that Length; What is the issue? Include screenshots / videos if possible!
27 kwi 2021 · Is there a way to compare the overall pathfinding distances between two different paths? For example, lets assume we are using Pathfinding Service, and have multiple Computed Paths. How would this then work?
9 sty 2024 · Calculating the position from 2 positions is pretty easy, but that’ll give you the distance in studs, so you’ll have to run the result through some math to calculate miles/kilometers. function GetDistance(Position1, Position2) return (Position1 - Position2).Magnitude. end.
20 lip 2023 · Use the Pythagorean Theorem, or in simple terms: Vector.Magnitude. local difference = (p0 - p1) -- The Difference between each other (or their offset) local distance = difference.Magnitude -- the distance between them. -- Math Explanation: -- The Pythagorean Theorem is used to find the distance between 2 points.
19 sty 2024 · You can use pathfinding (built into roblox) and use agent parameters to set simple settings for your npc to move (ex: can jump yes or no)
9 cze 2022 · I have the following code to calculate the shortest route between two points on a map. The main problem is that the shortest_path function of networkx, returns the same node for both points.
10 cze 2024 · I want to know how many studs there is between two parts. The reason why I can’t just use .Magnitude is because that will return the distance from two exact CFrames, and not the distance between the parts.