Removed unused parameter

dev
Shariq Shah 6 years ago
parent ae1364d2cd
commit b427932c34
  1. 2
      src/common/version.h
  2. 2
      src/game/bounding_volumes.c
  3. 2
      src/game/bounding_volumes.h
  4. 2
      src/game/player.c

@ -4,7 +4,7 @@
/* Auto generated version file. DO NOT MODIFY */ /* Auto generated version file. DO NOT MODIFY */
#define SYMMETRY_VERSION_MAJOR 0 #define SYMMETRY_VERSION_MAJOR 0
#define SYMMETRY_VERSION_MINOR 1 #define SYMMETRY_VERSION_MINOR 1
#define SYMMETRY_VERSION_REVISION 308 #define SYMMETRY_VERSION_REVISION 309
#define SYMMETRY_VERSION_BRANCH "dev" #define SYMMETRY_VERSION_BRANCH "dev"
#endif #endif

@ -392,7 +392,7 @@ bool bv_point_inside_bounding_box(struct Bounding_Box* box, vec3 point)
return true; return true;
} }
vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, struct Ray* ray, vec3 intersection_point) vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, vec3 intersection_point)
{ {
vec3 center = { (box->max.x + box->min.x) * 0.5f, vec3 center = { (box->max.x + box->min.x) * 0.5f,
(box->max.y + box->min.y) * 0.5f, (box->max.y + box->min.y) * 0.5f,

@ -61,6 +61,6 @@ float bv_distance_ray_plane(struct Ray* ray, Plane* plane);
void bv_bounding_box_vertices_get(struct Bounding_Box* box, vec3 out_vertices[8]); void bv_bounding_box_vertices_get(struct Bounding_Box* box, vec3 out_vertices[8]);
void bv_bounding_box_vertices_get_line_visualization(struct Bounding_Box* bounding_box, vec3 out_vertices[24]); void bv_bounding_box_vertices_get_line_visualization(struct Bounding_Box* bounding_box, vec3 out_vertices[24]);
float bv_distance_ray_bounding_box(struct Ray* ray, struct Bounding_Box* box); float bv_distance_ray_bounding_box(struct Ray* ray, struct Bounding_Box* box);
vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, struct Ray* ray, vec3 intersection_point); vec3 bv_bounding_box_normal_from_intersection_point(struct Bounding_Box* box, vec3 intersection_point);
#endif #endif

@ -204,7 +204,7 @@ void player_update(struct Player* player, struct Scene* scene, float dt)
vec3_add(&intersection_point, &intersection_point, &forward_ray.origin); vec3_add(&intersection_point, &intersection_point, &forward_ray.origin);
struct Bounding_Box* box = &colliding_entity->derived_bounding_box; struct Bounding_Box* box = &colliding_entity->derived_bounding_box;
vec3 normal = bv_bounding_box_normal_from_intersection_point(box, &forward_ray, intersection_point); vec3 normal = bv_bounding_box_normal_from_intersection_point(box, intersection_point);
struct Ray normal_ray; struct Ray normal_ray;
normal_ray.origin = intersection_point; normal_ray.origin = intersection_point;

Loading…
Cancel
Save