2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/Observer/Observer.h $
18 #ifndef _OBSERVER_HEADER_FILE
19 #define _OBSERVER_HEADER_FILE
24 #define OBS_MAX_VEL_X (85.0f) // side to side
25 #define OBS_MAX_VEL_Y (85.0f) // side to side
26 #define OBS_MAX_VEL_Z (85.0f) // forwards and backwards
29 #define OBS_FLAG_USED (1<<1)
31 typedef struct observer {
34 int target_objnum; // not used as of yet
38 #define MAX_OBSERVER_OBS 17
39 extern observer Observers[MAX_OBSERVER_OBS];
41 extern int Num_observer_obs;
44 int observer_create(matrix *orient, vector *pos); // returns objnum
45 void observer_delete(object *obj);
47 // get the eye position and orientation for the passed observer object
48 void observer_get_eye(vector *eye_pos, matrix *eye_orient, object *obj);