Go to the source code of this file.
◆ update_camera_unused_confined()
void update_camera_unused_confined |
( |
Camera * | camera | ) |
|
Definition at line 15 of file cam_mode_unused_confined.c.
15 {
16 f32 yawAngle, sinYaw, cosYaw;
17 f32 pitchAngle, sinPitch, cosPitch;
18 f32 dx, dy, dz, dr;
19 f32 targetX;
20 f32 targetZ;
21
23 if (targetX > camera->
params.confined.xLimit) {
24 targetX = camera->
params.confined.xLimit;
25 }
26 if (targetX < -camera->params.confined.xLimit) {
27 targetX = -camera->
params.confined.xLimit;
28 }
30
32 if (targetZ > camera->
params.confined.zLimit) {
33 targetZ = camera->
params.confined.zLimit;
34 }
35 if (targetZ < -camera->params.confined.zLimit) {
36 targetZ = -camera->
params.confined.zLimit;
37 }
39
45
48
52
56
60
64
68 }
69
73
77
81
85
89
94
98}
Referenced by update_cameras().