Hey folks.

Given two Vectors, if they are in too close a proximity, I want to move one
of them away from the other one.
I can already check if they are too close, it's the trig side of finding out
how to move them directly away from one another that I can't get my head
around.

Vector vecDir = pInflictor->WorldSpaceCenter() -
pVictim->WorldSpaceCenter();

Looks like a likely candidate but I'm unsure.

If anyone could think of anything off hand I'd appreciate it.

Thanks in advance.

- Jason Croghan


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to