Dynamic GameObject.Curve

As stated in the topic, I’ve created a GameObject.Curve with a Curve.Spline and now I want to dynamically update the spline points (I want to create something like a moving water wave) but I only found a way to define curve points on the creation of the object. Is the even possible to create a GameObject.Curve with dynamic points?


but it’s not using GameObject.Curve. It’s only drawing the curve dynamically based on the curve object. I need the curve as a gameobject (to apply physics etc.)

You can modify the curve value you passed to create the game object or else find it in the game object’s geom property, then call the private method updateData(). I don’t know a standard way to do it.