I have some code that updates a projectile's origin after each timestep, which very roughly looks like so:
However, when I run the code, the projectile's model never moves. I know the origin is being set because I have that print statement, and it indeed prints new coordinates each frame.
Is there something obvious that I am missing here? How could this be happening?
Code:
projectile.nextthink = time;
vector newposition = weird_curve_fn(projectile.curveparam);
projectile.curveparam += projectileSpeed * frametime;
setorigin(projectile, newposition);
LOG_INFO("origin = ", vtos(projectile.origin), "\n");
However, when I run the code, the projectile's model never moves. I know the origin is being set because I have that print statement, and it indeed prints new coordinates each frame.
Is there something obvious that I am missing here? How could this be happening?