Projectile Movement disables velocity changes after a hit event

Hennez
Sun, 17 Aug 2014 04:03:35 +0000
World Creation

Currently I’m trying to have a projectile which fires in a straight line, and when it collides with the world, it sticks there and from that point will home onto any enemy player that comes near it.

I have all the various parts working, but the homing code is all vector math, and having played around this for a bit I’ve realized the problem is that for some reason the projectile movement component ignores any velocity change after it’s triggered a hit event. I’m assuming this is an optimization tweak, which makes sense in most situations, but if there’s anyone around who knows exactly what it’s doing to switch that off, or how I could switch it back on, that would be much appreciated.

10 posts - 9 participants