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
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 2,422 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 4,009 07-13-2025, 07:11 PM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 1,493 06-07-2025, 09:44 AM
Last Post: _Aka_
  Filling a closed spline dynamically rickgplus 1 1,380 04-16-2025, 08:56 AM
Last Post: _Aka_

Forum Jump: