Skip to content

raylib.GetSplinePointBezierCubic

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get spline point for a given t [0.0f .. 1.0f], Cubic Bezier

Parameters

Parameter Default Value Note
p1
c2
c3
p4
t

Return value

Condition Return Value
(always) map

Notes

Example

// Get the midpoint on a cubic Bezier segment
pt = raylib.GetSplinePointBezierCubic([50,200], [100,50], [250,350], [350,200], 0.5)
print "Point: " + pt[0] + ", " + pt[1]

Clone this wiki locally