Add global collision point output
This commit is contained in:
parent
68e8bf8153
commit
27dcc00e68
@ -111,10 +111,12 @@ class CollisionSystem : public EntitySystem {
|
|||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
// Output to console
|
// Output to console
|
||||||
std::cout << "Triangle: " << result->p1[0] << ", " << result->p1[1] << ", "
|
std::cout << "Point: " << collision_position[0] << ", " << collision_position[1]
|
||||||
<< result->p1[2] << " | " << result->p2[0] << ", " << result->p2[1]
|
<< ", " << collision_position[2] << " || Triangle: " << result->p1[0]
|
||||||
<< ", " << result->p2[2] << " | " << result->p3[0] << ", "
|
<< ", " << result->p1[1] << ", " << result->p1[2] << " | "
|
||||||
<< result->p3[1] << ", " << result->p3[2] << std::endl;
|
<< result->p2[0] << ", " << result->p2[1] << ", " << result->p2[2]
|
||||||
|
<< " | " << result->p3[0] << ", " << result->p3[1] << ", "
|
||||||
|
<< result->p3[2] << std::endl;
|
||||||
|
|
||||||
// Ouput visually
|
// Ouput visually
|
||||||
glm::vec3 pos =
|
glm::vec3 pos =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user