VECTOR temp; while(1) { vec_set(temp,entity2.x); vec_sub(temp,entity1.x); vec_to_angle(entity1.pan,temp); // now entity1 looks at the entity2 wait(1); }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de