Skip to main content
added 2 characters in body
Source Link
Gordon Brinkmann
  • 38.1k
  • 1
  • 26
  • 62

Since the curve is bending and changing the X and Y directions along its path, you cannot simply move in X and Y to keep the second curve offset from the first.

Like a two lane road, where it bends the inner lane has to be shorter and the outer lane longer. You can achieve this by offsetting one curve from the other in the curve's normal direction.

In my example I used a curve and to visualize it I instanced cubes along their path. I made two cube lanes, one offset to one side of the curve, the other to the opposite side:

offset curves

To achieve this I scaledby scaling (with a positive value for red and negative for blue) the Normal of the curve and used this as Offset for the Set Position nodes for both curves. The cube instances I aligned with the curve tangent.

node setup

Since the curve is bending and changing the X and Y directions along its path, you cannot simply move in X and Y to keep the second curve offset from the first.

Like a two lane road, where it bends the inner lane has to be shorter and the outer lane longer. You can achieve this by offsetting one curve from the other in the curve's normal direction.

In my example I used a curve and to visualize it I instanced cubes along their path. I made two cube lanes, one offset to one side of the curve, the other to the opposite side:

offset curves

To achieve this I scaled (with a positive value for red and negative for blue) the Normal of the curve and used this as Offset for the Set Position nodes for both curves. The cube instances I aligned with the curve tangent.

node setup

Since the curve is bending and changing the X and Y directions along its path, you cannot simply move in X and Y to keep the second curve offset from the first.

Like a two lane road, where it bends the inner lane has to be shorter and the outer lane longer. You can achieve this by offsetting one curve from the other in the curve's normal direction.

In my example I used a curve and to visualize it I instanced cubes along their path. I made two cube lanes, one offset to one side of the curve, the other to the opposite side:

offset curves

To achieve this by scaling (with a positive value for red and negative for blue) the Normal of the curve and used this as Offset for the Set Position nodes for both curves. The cube instances I aligned with the curve tangent.

node setup

Source Link
Gordon Brinkmann
  • 38.1k
  • 1
  • 26
  • 62

Since the curve is bending and changing the X and Y directions along its path, you cannot simply move in X and Y to keep the second curve offset from the first.

Like a two lane road, where it bends the inner lane has to be shorter and the outer lane longer. You can achieve this by offsetting one curve from the other in the curve's normal direction.

In my example I used a curve and to visualize it I instanced cubes along their path. I made two cube lanes, one offset to one side of the curve, the other to the opposite side:

offset curves

To achieve this I scaled (with a positive value for red and negative for blue) the Normal of the curve and used this as Offset for the Set Position nodes for both curves. The cube instances I aligned with the curve tangent.

node setup