Create Animation Curve Programmatically

Does anyone know of a way to create an animation curve through code like if there’s a babylonJS statement like var animCurve = new BABYLON.AnimationCurve(); or something?

the animation curve editor generates animations based on the data provided. You can create your own JSON file with the right data and parse it using this method:

ACE - The Animation Curve Editor | Babylon.js Documentation (

Otherwise, you can create your own animations:

Designing Animations | Babylon.js Documentation (