static Vector3 CubicBezier (in Vector3 source, in Vector3 target, in Vector3 sourceTangent, in Vector3 targetTangent, float t)

Parameters

NameTypeDescription
in source Vector3 Point A of the curve in world space.
in target Vector3 Point B of the curve in world space.
in sourceTangent Vector3 Tangent for the Point A in world space.
in targetTangent Vector3 Tangent for the Point B in world space.
t float How far along the path to get a point on. Range is 0 to 1, inclusive.

Returns

TypeDescription
Vector3 The point on the curve
Declared in Vector3 ยท Assembly Sandbox.System
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.