Improved rendering
This commit is contained in:
@ -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