drawing lines relative to position

This commit is contained in:
Eric Levin 2015-05-28 16:00:24 -07:00
parent 533148f26d
commit 3627f03c0d

View file

@ -38,7 +38,7 @@ void RenderableLineEntityItem::render(RenderArgs* args) {
if(_lineVerticesID == GeometryCache::UNKNOWN_ID){
_lineVerticesID = geometryCache ->allocateID();
}
// glTranslatef(position.x, position.y, position.z);
glTranslatef(position.x, position.y, position.z);
glm::vec3 axis = glm::axis(rotation);
glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
geometryCache->updateVertices(_lineVerticesID, getLinePoints(), lineColor);