create a vector from one point to another point ?

hello,

I just want to create a vector3 (direction) from two points (world position)! a idea ?

thank you

Vector3 newVector = targetPoint - initialPoint;

or

Vector3 newVector = targetTransform.position - fromTransform.position;

the only thing you need to rmember when doing vector subtraction is that, like all subtraction (i think!), it's non-commutative (i.e. in order to get the answer you want from subtraction it matters which thing you subtract from which).

I remember it like this:

vSourceToDestination = vDestination - vSource;

That's more or less exactly what the previous answer says, but I'm hoping my "destination minus source" thing helps it stick in yr head :)

darbotron