Skip to content

Releases: gpvigano/EasyCurvedLine

Version 1.1

21 Jan 14:57
Compare
Choose a tag to compare

New features

Context menus are added to Unity Editor to ease the creation of curved lines.

  • In Game Object menu (and in the Hierarchy view context menu) a new Curved line menu item is present in Effects sub-menu.
  • In Curved Line Renderer component there are new menu items for adding new line control points and renaming them according to their position.
  • In Curved Line Point component there are menu items for adding new line control points.

Fixed bugs

  • CurvedLineRenderer was changed to allow nested curved lines.

Documentation

  • Added more documentation to the source code.

Version 1.0

18 Jan 16:51
Compare
Choose a tag to compare

Features

  • scripts:
    • LineSmoother
      • main utility script for smoothing out positions
      • static function so it can be accessed without being attached to a gameobject
      • feed it an array of Vector3 and a segment size and you will get back a smoothed out array!
      • segment size is world space and so the number of line segments in between points adjusts based on distance between points
    • CurvedLineRenderer
      • example use case for smoothed out positions
      • add new points and it will automatically update to include the new position!
      • example scene is provided with a regular curved line and a curved line with physics applied to each point
    • CurvedLinePoint
      • draws gizmo and sends back to CurvedLineRenderer to update line when the point is moved
  • textures and materials:
    • normal maps to make curved lines look like their were solid
    • sample ready-to-use materials for lines (unlit and wires or pipes)