Xonotic Forums

Full Version: model not moving with entity
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have some code that updates a projectile's origin after each timestep, which very roughly looks like so:

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?
UpdateCSQCProjectile(projectile);