-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.Vector3CubicHermite
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Calculate cubic hermite interpolation between two vectors and their tangents as described in the GLTF 2.0 specification: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#interpolation-cubic
| Parameter | Default Value | Note |
|---|---|---|
| v1 | [0, 0, 0] | |
| tangent1 | [0, 0, 0] | |
| v2 | [0, 0, 0] | |
| tangent2 | [0, 0, 0] | |
| amount | 0 |
| Condition | Return Value |
|---|---|
| (always) | list |
v1 = [0, 0, 0]
tg1 = [1, 0, 0]
v2 = [1, 0, 0]
tg2 = [1, 0, 0]
result = raylib.Vector3CubicHermite(v1, tg1, v2, tg2, 0.5)
print result // interpolated position at t=0.5