Go to the source code of this file.
◆ update_camera_interp_pos()
void update_camera_interp_pos |
( |
Camera * | camera | ) |
|
Definition at line 14 of file cam_mode_interp.c.
14 {
15 f32 pitchAngle, sinPitch, cosPitch;
16 f32 yawAngle, sinYaw, cosYaw;
17 f32 x, y, z, dx, dy, dz, dr;
18
24
27
31
35
39
43
47 }
48
49
50
54
55 if (
fabsf(dx) > 16.0f) {
56 if (dx < 0.0f) {
57 dx = -16.0f;
58 } else {
59 dx = 16.0f;
60 }
61 }
62 if (
fabsf(dy) > 16.0f) {
63 if (dy < 0.0f) {
64 dy = -16.0f;
65 } else {
66 dy = 16.0f;
67 }
68 }
69 if (
fabsf(dz) > 16.0f) {
70 if (dz < 0.0f) {
71 dz = -16.0f;
72 } else {
73 dz = 16.0f;
74 }
75 }
76
80
81
82
86
90
94
98
99
100
104
105 if (
fabsf(dx) > 16.0f) {
106 if (dx < 0.0f) {
107 dx = -16.0f;
108 } else {
109 dx = 16.0f;
110 }
111 }
112 if (
fabsf(dy) > 16.0f) {
113 if (dy < 0.0f) {
114 dy = -16.0f;
115 } else {
116 dy = 16.0f;
117 }
118 }
119 if (
fabsf(dz) > 16.0f) {
120 if (dz < 0.0f) {
121 dz = -16.0f;
122 } else {
123 dz = 16.0f;
124 }
125 }
126
130
131
132
137
141}
Referenced by update_cameras().