prog.cpp:2:6: error: ‘Player’ has not been declared
bool Player::IsSweptColliding(float timeStep)
^
prog.cpp: In function ‘bool IsSweptColliding(float)’:
prog.cpp:4:3: error: ‘glm’ has not been declared
glm::vec3 vel = m_velocity*timeStep;
^
prog.cpp:4:13: error: expected ‘;’ before ‘vel’
glm::vec3 vel = m_velocity*timeStep;
^
prog.cpp:6:16: error: ‘vel’ was not declared in this scope
if(IsNullVec(vel))
^
prog.cpp:6:19: error: ‘IsNullVec’ was not declared in this scope
if(IsNullVec(vel))
^
prog.cpp:9:3: error: ‘AABB’ was not declared in this scope
AABB g = m_aabb;
^
prog.cpp:9:8: error: expected ‘;’ before ‘g’
AABB g = m_aabb;
^
prog.cpp:10:3: error: ‘g’ was not declared in this scope
g.SetCenter(this->m_position);
^
prog.cpp:10:15: error: invalid use of ‘this’ in non-member function
g.SetCenter(this->m_position);
^
prog.cpp:12:14: error: ‘m_octree’ was not declared in this scope
auto vec = m_octree->CheckCollisionSwept(g, vel);
^
prog.cpp:12:47: error: ‘vel’ was not declared in this scope
auto vec = m_octree->CheckCollisionSwept(g, vel);
^
prog.cpp:16:7: error: ‘m_position’ was not declared in this scope
m_position += vel;
^
prog.cpp:20:3: error: ‘glm’ has not been declared
glm::vec3 sweepDir = glm::normalize(vel);
^
prog.cpp:20:13: error: expected ‘;’ before ‘sweepDir’
glm::vec3 sweepDir = glm::normalize(vel);
^
prog.cpp:23:53: warning: narrowing conversion of ‘99999999’ from ‘int’ to ‘float’ inside { } [-Wnarrowing]
float minDistAxis[3] = {99999999,99999999,99999999};
^
prog.cpp:23:53: warning: narrowing conversion of ‘99999999’ from ‘int’ to ‘float’ inside { } [-Wnarrowing]
prog.cpp:23:53: warning: narrowing conversion of ‘99999999’ from ‘int’ to ‘float’ inside { } [-Wnarrowing]
prog.cpp:24:3: error: ‘uint32_t’ was not declared in this scope
uint32_t axisVoxel[3] = {0,0,0};
^
prog.cpp:24:12: error: expected ‘;’ before ‘axisVoxel’
uint32_t axisVoxel[3] = {0,0,0};
^
prog.cpp:27:12: error: expected ‘;’ before ‘x1’
uint32_t x1,y1,z1;
^
prog.cpp:28:12: error: expected ‘;’ before ‘x2’
uint32_t x2,y2,z2;
^
prog.cpp:36:36: error: ‘IsNullVec’ was not declared in this scope
if(t==1||IsNullVec(voxel.normal))
^
prog.cpp:39:41: error: ‘GetBlockAxis’ was not declared in this scope
int axis = GetBlockAxis(voxel.normal);
^
prog.cpp:47:10: error: ‘j’ was not declared in this scope
loop(j, vec.size())
^
prog.cpp:47:23: error: ‘loop’ was not declared in this scope
loop(j, vec.size())
^
prog.cpp:48:7: error: expected ‘;’ before ‘{’ token
{
^
prog.cpp:66:88: error: ‘printf’ was not declared in this scope
printf("Blck axisd[%.2f,%.2f,%.2f]\n", minDistAxis[0], minDistAxis[1], minDistAxis[2]);
^
prog.cpp:69:3: error: ‘glm’ has not been declared
glm::vec3 clampedMotion = vel;
^
prog.cpp:69:13: error: expected ‘;’ before ‘clampedMotion’
glm::vec3 clampedMotion = vel;
^
prog.cpp:73:7: error: ‘clampedMotion’ was not declared in this scope
clampedMotion[i] *= minHitDist;
^
prog.cpp:76:3: error: ‘m_position’ was not declared in this scope
m_position = m_position + clampedMotion;
^
prog.cpp:76:29: error: ‘clampedMotion’ was not declared in this scope
m_position = m_position + clampedMotion;
^
prog.cpp:63:3: warning: label ‘noblock’ defined but not used [-Wunused-label]
noblock:;
^