상품 설명
The Bezier builder has two sliders, 1 for the overall percentage of the orb and another that determines the length of the curve. It also has an empty that can be animated as needed.
Requirements : UdonSharp, VRCSDK, Unity Version 2019.4.31f1
Included:
CubicBezierBuilder.asset
CubicBezierBuilder.cs
TemplarsBezierBuilder.prefab
How To Change Into a Single Curve:
Change "PointsT" to 4 in the inspector and the "CurvePairs" to 1. Feel free to then delete the empties named P4 to P12. Set the Animation speed to 0 if you dont want the empty to animate. By Setting the Curve Percent you can get any point on the curve.
Cubic Equation source:
https://en.wikipedia.org/wiki/B%C3%A9zier_curve#
I hope this helps anyone looking to find a curve solution for UdonSharp. :)
모든 리뷰
더보기리뷰 등록
리뷰를 작성하려면 로그인이 필요합니다.
로그인하고 리뷰 쓰기