voxelThing/include/playerController.h
2025-05-26 20:59:26 -04:00

23 lines
497 B
C

// playerController.h
#ifndef PLAYER_CONTROLLER_H
#define PLAYER_CONTROLLER_H
#include "raylib.h"
#include "chunkStructures.h"
typedef struct {
bool hit;
Vector3 position;
Vector3 normal;
int blockID;
float t;
} RaycastHit;
RaycastHit RaycastChunk(const Chunk *chunk, Vector3 origin, Vector3 direction, float maxDistance);
void UpdateFreeCamera(Camera3D *cam, float speed, float *yawOut, float *pitchOut);
void DrawFaceHighlight(Vector3 blockPos, Vector3 normal);
#endif