|
Trace Engine
A Raycaster Engine in C
|
#include "trc_world_position.h"Go to the source code of this file.
Functions | |
| trc_world_position_t | get_camera_position (void) |
| void | move_camera_sliding (const trc_world_position_t velocity) |
| void | move_camera_colliding (const trc_world_position_t velocity) |
| void | rotate_camera (const float rotation_delta) |
| trc_world_position_t | get_camera_direction (void) |
| float | get_camera_angle (void) |
| void | reset_camera_info (void) |
| void | draw_camera (void) |
| void | open_door (void) |
| void draw_camera | ( | void | ) |
Draw the camera in the screen in the actual camera position.
| float get_camera_angle | ( | void | ) |
Returns the current camera angle of vision (in radians)
| trc_world_position_t get_camera_direction | ( | void | ) |
Returns the current camera direction, in the form of a normalized vector
| trc_world_position_t get_camera_position | ( | void | ) |
Returns the current camera position
| void move_camera_colliding | ( | const trc_world_position_t | velocity | ) |
Moves the camera with the given velocity, will stop fucking moving if a collision is detected
| void move_camera_sliding | ( | const trc_world_position_t | velocity | ) |
Moves the camera with the given velocity, will slide along the walls if a collision is detected
| void open_door | ( | void | ) |
Check if is a door infront of the camera. If that's true, opens the door
| void reset_camera_info | ( | void | ) |
Sets the camera info to the current level
| void rotate_camera | ( | const float | rotation_delta | ) |
Rotates the camera adding the given delta to the current camera angle