Vector3f newDest = dest.clone();
Vector3f newSrs = src.clone();
//subtract to get direction from dest to src
Vector3f vec = newDest.subtract(newSrs);
//normalize
vec.normalizeLocal();
//negate so it goes other direction?
vec.negateLocal();
//my two distance vectors
Vector3f real = vec.mult(2f);
Vector3f real2 = vec.mult(3f);
//tonegod specific particle emitter code, jut to show how I'm using it
e1.getInfluencer(DestinationInfluencer.class).removeAll();
e1.getInfluencer(DestinationInfluencer.class).addDestination(real, .52f, Interpolation.exp5Out);
e1.getInfluencer(DestinationInfluencer.class).addDestination(real2, .42f, Interpolation.exp5Out);
Any ideas on where I’m going wrong with the vector math? I thought this should have been very simple but I must be doing something wrong.
Your code seems correct (except it create lot of useless Vector3f). Are you sure about the value of dest and src.
simplification
Vector3f vec = src.subtract(dest); // substract create a clone and let operand asis
//normalize
vec.normalizeLocal();
//my two distance vectors
Vector3f real = vec.mult(2f);
Vector3f real2 = vec.mult(3f);
//tonegod specific particle emitter code, jut to show how I'm using it
e1.getInfluencer(DestinationInfluencer.class).removeAll();
e1.getInfluencer(DestinationInfluencer.class).addDestination(real, .52f, Interpolation.exp5Out);
e1.getInfluencer(DestinationInfluencer.class).addDestination(real2, .42f, Interpolation.exp5Out);
This looks good I think… as long as the destination influencer is relative to the source of the emitter, which I’m not exactly sure about.
Is it possible that since I had to rotate the node this is being attached to (prior to adding the emitter) that this is somehow affecting the direction of the emission?