Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixed straight distance between 2 SC
#1
Question 
everyone,

I have 2 problems to calculate a straight fixed distance between 2 points on a spline.

1)
Point A (Spline Controller)  is moving.
Point B (Spline Controller)  should be recalculated by a fixed straight distance (or radius) to Point A.

[img][/img]
Code:
public SplineController pA;
public SplineController pB;
public float distance = 30;
________________________________________________________________________________________


2) Another Points A and B. 
But Point A owns now a world position.
The Green Points are the result of (1)

[img][/img]
Code:
public Transform pA;
public SplineController pB;
public float distance = 20;


Would someone so kind and provide me with some lines of code how to. I'm not able to deal with vec math.
Thanks and kind regards,
Roger
(Henry Ford) Each hour more of searching is each hour less of your live time.

Reply


Messages In This Thread
Fixed straight distance between 2 SC - by Trainzland - 12-15-2015, 02:39 AM

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: