Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Draw a spline as a string in 2D game
#1
Hi,
I want to draw a spline in a 2D game as a very thin string. What I thought is to use a generator with the shape extrusion template, with a segment as input spline shape (one-dimensional shape to generate two-dimensional mesh). The mesh is generated but I have problems with the orientation as you can see in the image

   

I don't know if the problem is in how I set up the generator, or it's in the spline (I set orientation "none" in the spline).

How can I fix it?
Anyway is it the best way to achieve what I want?

Thanks
Reply
#2
You want something that looks like a LineRenderer output in the end, right? Try to set the orientation of your extrusion path perpendicular to the 2D plane. So, if your using X/Y, set orientation to go into the Z axis.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question Check Spline collisions (Pathfinding) Hukha 4 142 03-24-2020, 02:00 PM
Last Post: _Aka_
  Add Template problem in the Generator with Input Spline Shape prefab ATHellboy 1 138 03-13-2020, 11:27 PM
Last Post: _Aka_
  Spline object on a spline path ATHellboy 22 1,650 03-01-2020, 05:03 PM
Last Post: _Aka_
  Convert position of a point on a spline to another spline which is connected ATHellboy 5 452 02-17-2020, 12:17 PM
Last Post: _Aka_

Forum Jump: