SebLague / Path-Creator

Path creation asset for Unity game development
https://assetstore.unity.com/packages/tools/utilities/b-zier-path-creator-136082
MIT License
1.83k stars 319 forks source link

Aligning an anchor's normal angle with the rotation of another object. #133

Open Thaggers opened 1 year ago

Thaggers commented 1 year ago

Hi, so I've set up some code so the ends of a path move with a given object, but I'd also like the normal at that anchor to match that object's transform.up (as closely as possible, as the normal should still be perpendicular to the curve). I can define an angle for the anchor point, but is there a way to set that angle so the normal matches the rotation of another object?