Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add a new point with a smooth curve?
#5
The code used to draw spline from the editor uses the InsertAfter method, which is the same used in the Add.
If you want to check the editor spline drawing code, you will find it at TBDrawControlPoints.addCP (private method)
If you want to see an example of runtime drawing of splines, you can find one in the script used in example scene 51, InfiniteTrack.addTrackCP (private method)
Let me know if you managed to find what was wrong with your code using the Add() method
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: How to add a new point with a smooth curve? - by _Aka_ - 03-22-2021, 09:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Connection "next' control point jh092 3 15 11-22-2023, 11:47 AM
Last Post: _Aka_

Forum Jump: