Home / Forums / Drawing Interactive Bezier Curves & Spline Editors in Dear ImGui

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Drawing Interactive Bezier Curves & Spline Editors in Dear ImGui

LuaScripterX
Luau & Lua VM Reverser
VIP
Rep: 260
Join Date: Mar 2022
Posts: 20
Thanks: 68
3y ago · Sep 7, 2022 3:00 PM
#1
Here is an interactive curve editor widget using ImDrawList::AddBezierCubic with draggable tangent handle control points.
LuaScripterX · Luau VM & Bytecode Engineering
The following users thanked LuaScripterX for this post:
AimbotMath
Trigonometry & Smoothing
MEMBER
Rep: 285
Join Date: Nov 2023
Posts: 27
Thanks: 73
3y ago · Sep 7, 2022 5:14 PM
#2
Perfect for adjusting weapon recoil curves, particle velocity over time, or animation easing curves in real time!
AimbotMath · Angular Normalization & Smooth Angles
ParanormalDev
MelonLoader / BepInEx Dev
MEMBER
Rep: 230
Join Date: Sep 2023
Posts: 21
Thanks: 58
3y ago · Sep 8, 2022 6:14 PM
#3
Clamping handle control points to normalized [0, 1] range keeps curve evaluations predictable for game math.
ParanormalDev | MelonLoader & ImGui Modding