Fixing camera controls.

This commit is contained in:
2021-08-25 21:48:07 -07:00
parent eed325d702
commit c07edc8770
6 changed files with 33 additions and 39 deletions

View File

@ -7,10 +7,11 @@
#pragma once
#include "../../libs.h"
#include "../../util/math.h"
#include "../../display/primitive.h"
#define POKER_WORLD_SEAT_DISTANCE -1
#define POKER_WORLD_SEAT_ROTATION(n) ((8 - n) * 0.785398)
#define POKER_WORLD_SEAT_ROTATION(n) (n * mathDeg2Rad(45.0f))
#define POKER_WORLD_SEAT_POSITION_X(n) ( \
POKER_WORLD_SEAT_DISTANCE * (float)sin(POKER_WORLD_SEAT_ROTATION(n)) \