VECTOR temp; VECTOR offset; offset.x = [dist]; offset.y = [horizontal]; offset.z = [vertical]; // proc_mode = PROC_LATE; vec_set(temp, offset); vec_rotate(temp, camera.pan); vec_add(temp, camera.x); vec_set(my.x, temp); vec_set(my.pan, camera.pan); angle_rotate(my.pan, vector(180,0,0)); // OPTIONAL: rotate's the entity 180 deg so it faces camera
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de