Changeset 2551 in orxonox.OLD for orxonox/trunk/src/camera.h
- Timestamp:
- Oct 11, 2004, 12:53:43 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/camera.h
r2190 r2551 13 13 //! Camera 14 14 /** 15 This class controls the viewpoint from which the World is rendered. To use the Camera it has 16 to be bound to a WorldEntity which serves as the reference focus point. The Camera itself calls 17 the WorldEntity::get_lookat() and World::calc_camera_pos() functions to calculate the position it 18 currently should be in. 15 This class controls the viewpoint from which the World is rendered. To use the 16 Camera it has to be bound to a WorldEntity which serves as the reference focus 17 point. The Camera itself calls the WorldEntity::get_lookat() and 18 World::calc_camera_pos() functions to calculate the position it currently should 19 be in. 19 20 */ 21 22 enum CAMERA_MODE {NORMAL, SMOTH_FOLLOW, STICKY, ELLIPTICAL}; 23 20 24 class Camera { 21 25 private: 22 WorldEntity* bound; //!< the WorldEntity the Camera is bound to 23 Placement actual_place; //!< the Camera's current position 24 Placement desired_place; //!< where the Camera should be according to calculations 26 WorldEntity* bound; //!< the WorldEntity the Camera is bound to 27 Placement actual_place; //!< the Camera's current position 28 Placement desired_place; //!< where the Camera should be according to calculations 29 30 /* physical system - not needed yet */ 31 float m; //!< mass 32 Vector *fs; //!< seil-kraft 33 Vector *a; //!< acceleration 34 Vector *v; //!< velocity 35 36 /* elliptical camera mode variables */ 37 Placement plLastBPlace; 38 float cameraOffset; 39 float cameraOffsetZ; 40 float deltaTime; 41 float t; 42 Vector r; 43 float rAbs; 44 float ka; 45 float a0; 46 47 Quaternion *from; 48 Quaternion *to; 49 Quaternion *res; 50 51 52 CAMERA_MODE cameraMode; //!< saves the camera mode: how the camera follows the entity 25 53 26 54 void update_desired_place ();
Note: See TracChangeset
for help on using the changeset viewer.