StreamGame/source/engine/player_controller.h
2025-05-29 19:00:39 +02:00

19 lines
366 B
C

#pragma once
#include "vector_math.h"
#include "input_state.h"
typedef struct {
Vector3 position;
Vector3 velocity;
Vector3 acceleration;
float yaw;
float pitch;
bool isGrounded;
bool isSprinting;
bool isSliding;
} PlayerState;
void initialize_player(PlayerState *player);
void update_player_movement(PlayerState *player, InputState *input, float delta);