bansheeGz / BGCurve

Bezier spline editor for Unity game engine
MIT License
142 stars 27 forks source link

Attached points as parent-child relation #11

Open viol3 opened 6 years ago

viol3 commented 6 years ago

I have 3 different points which generated a curve. I want that when I change position of points[1], also points [2] would be changed as children object(angles & positions). I tried to find settings or properties about this but I couldn't find. Is there any option about it?

banshee-gzzz commented 6 years ago

I'm not sure, it will work ok, but you could try Point's transform field as described here: http://www.bansheegz.com/BGCurve/UserGuide/Spline/ Point's transform field- is a system field- you can assign any transform to be a point's position. Rotation and scaling also affect point's controls (incoming and outcoming) So assign parent transform to points[1] and child transform to points[2]