void update_light_camera(Camera *lcam, Light *light)
Updates a directional light camera and locks it to texel size.
bool collision(vec3 proposed, vec3 pts[3], vec3 normal, CollisionPoints *p)
mat4 make_ortho(float left, float right, float bottom, float top, float near, float far)
Makes an 4x4 orthographic matrix.
void reset_skeleton(Skeleton *s, vec3 pos)
Resets a skeleton to be relative to a new position.
void update_skeleton(Skeleton *s, Camera *cam, vec3 vel)
Moves feet, then solves a skeleton's leg IKs and updates the springs accordingly.
void resolve_collisions(Camera *cam)
Resolves collisions between camera and geometry, uses player.
void apply_velocity(Camera *cam, vec3 move_dir, float dt)
Applies no-clip mode velocity to player with no gravity applied.
void compute_camera_basis(Camera *cam, float yaw, float pitch, float roll, vec3 world_up)
Computes camera vectors based on yaw, pitch, and roll.
mat4 make_look_at(Camera *cam, vec3 eye)
Makes a 4x4 view matrix using camera vectors.
void update_body_from_legs(LegIK *left_leg, LegIK *right_leg, vec3 intended_vel, float dt)
Calculates velocity based on leg positions and integrates them into the player.
void update_camera(Skeleton *s, Camera *cam)
Updates a camera based on a skeleton's current neck and body position.
mat4 make_projection(float fov_deg, float aspect, float near, float far)
Makes an 4x4 projection matrix.
void apply_planet_velocity(Camera *cam, vec3 move_dir, float dt)
Applies normal velocity to player with gravity and friction applied.
Camera cam
This is currently the player cam.
Engine specific types and defines.
The camera structure for players and entities.
The controller for leg IKs for Skeletons.
The controller for leg IKs for Skeletons.
Points that track collision data such as direction, penetration depth, and more to generate Manifolds...
The CPU side structure for Lights.
float dt
The 1.0f/60 simulation timestep.