Class LineRendererHelper
- Namespace
- CodeBase
- Assembly
- 4Experience.CodeBase.Core.Runtime.dll
public static class LineRendererHelper
- Inheritance
-
LineRendererHelper
Methods
CalculateMiddlePointPositionForBezierCurve(Vector3, Vector3, float, float)
Calculates the position of the middle point for a Bezier curve. The position is calculated by rotating the top offset vector towards the target position, then adding it to the midpoint between the origin and target positions, weighted by the distance fraction.
Furthest point for curve Origin point for curve middle point offset (if is set to 0 it wont be parabola) Shift of top of parabolapublic static Vector3 CalculateMiddlePointPositionForBezierCurve(Vector3 target, Vector3 origin, float topOffset, float distanceFractionNormalized = 0.5)
Parameters
Returns
- Vector3