Convert dynent to a class
FossilOrigin-Name: d2b3ff790fee10ef4150cdb17f1c979e7001a420b2629b153b4dbf4c0b489704
This commit is contained in:
parent
410e244ed6
commit
90fc249052
26 changed files with 1447 additions and 1061 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "cube.h"
|
||||
|
||||
#import "DynamicEntity.h"
|
||||
|
||||
#define NUMRAYS 512
|
||||
|
||||
float rdist[NUMRAYS];
|
||||
|
@ -26,10 +28,10 @@ computeraytable(float vx, float vy)
|
|||
|
||||
odist = getvar(@"fog") * 1.5f;
|
||||
|
||||
float apitch = (float)fabs(player1->pitch);
|
||||
float apitch = (float)fabs(player1.pitch);
|
||||
float af = getvar(@"fov") / 2 + apitch / 1.5f + 3;
|
||||
float byaw = (player1->yaw - 90 + af) / 360 * PI2;
|
||||
float syaw = (player1->yaw - 90 - af) / 360 * PI2;
|
||||
float byaw = (player1.yaw - 90 + af) / 360 * PI2;
|
||||
float syaw = (player1.yaw - 90 - af) / 360 * PI2;
|
||||
|
||||
loopi(NUMRAYS)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue