1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-03 06:24:32 +00:00

Remove RenderObject::collidePosition and related code

This was always (0, 0) and optionally used for bones if defined in skeletal files.
None of the official skeletal files used this, so this should be safe to remove.
This commit is contained in:
fgenesis 2016-05-07 00:47:45 +02:00
parent d4a1e1ef1d
commit 35a3888c94
5 changed files with 5 additions and 21 deletions

View file

@ -364,7 +364,7 @@ Vector RenderObject::getWorldCollidePosition(const Vector &vec)
#ifdef BBGE_USE_GLM
glm::mat4 transformMatrix = glm::translate(
matrixChain(this),
glm::vec3(collidePosition.x + vec.x, collidePosition.y + vec.y, 0.0f)
glm::vec3(vec.x, vec.y, 0.0f)
);
return Vector(transformMatrix[3][0], transformMatrix[3][1], 0);
@ -374,7 +374,7 @@ Vector RenderObject::getWorldCollidePosition(const Vector &vec)
glLoadIdentity();
matrixChain(this);
glTranslatef(collidePosition.x+vec.x, collidePosition.y+vec.y, 0);
glTranslatef(vec.x, vec.y, 0);
float m[16];
glGetFloatv(GL_MODELVIEW_MATRIX, m);