Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Shapes for the spline not working.
#8
This is easy. The rectangle is created at the four points generated by half-width/height off the center, so you'd have to shift the vertices by heigth/2, so


Code:
new Vector3(-w2,h2,0)

becomes


Code:
new Vector3(-w2,0,0)

or in general:

Code:
var offset=new Vector3(0,h2,0);
new Vector3(-w2,h2,0)-offset
...
Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,361 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 660 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,463 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,232 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: