Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixed straight distance between 2 SC
#2
There's no easy way to achieve that (or I'm missing something). Getting distance between the two points is easy ((B.AbsolutePosition-A.AbsolutePosition).magnitude), but finding the exact point on the spline that keeps a certain straight distance must be done by bruteforce, I guess. Check distance, then move B a bit, check again...that might fail for some curvations, but it's an easy hack.

Perhaps someone else has a more clever approach...
Reply


Messages In This Thread
RE: Fixed straight distance between 2 SC - by Jake - 12-17-2015, 06:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
Question Volume Spots inter group distance Sacryn 1 3 02-27-2024, 04:08 PM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 7 02-23-2024, 09:44 AM
Last Post: _Aka_
  Keeping a fixed spline length jh092 3 16 02-21-2024, 06:25 AM
Last Post: Primrose44

Forum Jump: