line entities can now be properly rotated using rotation property

This commit is contained in:
ericrius1 2015-06-29 11:08:09 -07:00
parent 62b3ca936f
commit 843ab6d5e3

View file

@ -45,6 +45,7 @@ void RenderableLineEntityItem::render(RenderArgs* args) {
gpu::Batch& batch = *args->_batch;
Transform transform = Transform();
transform.setTranslation(getPosition());
transform.setRotation(getRotation());
batch.setModelTransform(transform);
batch._glLineWidth(getLineWidth());