ive attached a laser gun to an aircraft, very straight forward and ive made a beam emitter that is attached to a projectile so when it fires it draws a beam out from the gun to the point of impact.
the problem is the beam source always separates from the muzzle after firing making the laser look like its firing from about a meter behind the gun as the aircraft is in motion.
how can i lock the source of the laser to the moving muzzle?
actually i may have spotted a different problem all together.
my laser beam always spawns about 10m ahead of the muzzle, no matter what parameters i change
Make sure you are spawning your emitter attached to the muzzle (gun, aircraft or whatever) mesh.
Looks like you are just spawning it in the current position of the muzzle, but if you spawn it attached, it will move along with the mesh you attach it to.
the node name for that is called “SpawnEmitterAttached”.
Was already doing this, it seemed like the obvious choice between the two.
i ended up setting the source for the beam -500 on the X axis which seems to have fixed the worst of it
Did you give it a socket to attach to?
also make sure the socket you attach to has the right name spelling. wrong name just resets the point to local root. it’s case sensitive so mind capital letters