Cub3D
 
Loading...
Searching...
No Matches
player_utils.c File Reference
#include "cub3d_render.h"
#include <math.h>
Include dependency graph for player_utils.c:

Functions

void solve_collision_x (t_data *data, float x_vel)
 Solver of collision on x axis.
 
void solve_collision_y (t_data *data, float y_vel)
 Solver of collision on y axis.
 
void resolve_collision_steps (t_data *data, float vel_x, float vel_y)
 Solver of collision on x and y using steps smaller than 1 unit, To use only when moving faster than 1 unit, when MOVEMENT_SPEED_FWD_BWD >= 1.0f or MOVEMENT_SPEED_LEFT_RIGHT >= 1.0f.