Get x and y (seperately) distance from one process to another (or more)

Started by MisterN, June 21, 2012, 03:29:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MisterN

Exactly what the title says. That would be a very good thing to have.
werg

SplinterGU


#define get_dist_x(pid) get_distx(get_angle(pid),get_dist(pid))
#define get_dist_y(pid) get_disty(get_angle(pid),get_dist(pid))


:P
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

BlackCurtain

I guess what Splinter is trying to say is that we should start thinking twice before making suggestions :P
You can achieve many "custom" functions with the tools you already have at hand.

handsource-dyko

Precisely.  ;) I used to think that way too, until I realised that you can make your own (powerfull) functions by using/combining existing ones.
Believe me, when you get more experienced you start to think in creating your own solutions. (It's the C/Unix philosophy, using small functions to create solutions for more complex problems).

Like lego's, just a bunch of simple blocks, but that can be combined in a virtually infinite number of ways to create the most complex structures.
I used to play with lego bricks a lot, it was a by far my favorite toy.