Improved rendering
This commit is contained in:
1 parent
bba6a4b4a1
commit
ec13de8b3e
2 files changed
+13
-8
No files matched your search
@@ -10,11 +10,11 @@
|
||||
void pokerLookAtPlayer(camera_t *camera, uint8_t seat) {
|
||||
float x, z, angle;
|
||||
angle = POKER_SEAT_ANGLE(seat);
|
||||
x = sin(angle);
|
||||
z = cos(angle);
|
||||
x = sin(angle) * 0.8;
|
||||
z = cos(angle) * 0.8;
|
||||
cameraLookAt(camera,
|
||||
x, 0.2, z,
|
||||
-x, 0.2, -z
|
||||
x, 0.3, z,
|
||||
-x, 0.3, -z
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user