Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] model not moving with entity

#1
Question 
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?
Reply

#2
UpdateCSQCProjectile(projectile);
[Image: 230.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Moving away from QuakeC Lyberta 11 9,432 07-17-2020, 07:36 AM
Last Post: LegendGuard
  Can I adjust the weapon model size and stuff? Molnija 1 2,280 03-13-2019, 12:28 AM
Last Post: BuddyFriendGuy
  [SOLVED] Correct way to make entity with opacity depending on distance to player Penguinum-tea 2 3,794 04-03-2015, 02:18 PM
Last Post: Penguinum-tea

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-