Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connections and control point synchronization by script
Is there any mean to create connections and set rotation/position synchronization by script? I managed to create a connection between two control points and setting the ConnectionSyncRotation/Position property does indeed change the connection color to corresponding synchronization type but it has no effect on the curve... maybe I should call some sort of refresh but I couldn't find it...?
Okay, I think I've found what I was looking for: CurvySplineSegment.RefreshTransform(...) with all parameters set to true.
Once you've established a connection, a change to a participating CP will refresh the connection. I.e. change the position of an involved CP and the connection will force all it's CP's to sync position (if they have the corresponding flag set).

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spot Generator resetting some values after Script compilation Mos Def 2 21 4 hours ago
Last Post: Mos Def
  get a point on the curve a distance away from another fortune53 1 191 03-31-2021, 07:46 AM
Last Post: _Aka_
  How to add a new point with a smooth curve? athos_k 4 334 03-22-2021, 09:10 AM
Last Post: _Aka_
  Error while making prefab having curvy Generator script User2200 3 352 03-15-2021, 07:16 PM
Last Post: _Aka_

Forum Jump: