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
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: