Skip to content

Instantly share code, notes, and snippets.

@MatthewBlanchard
Created August 28, 2018 22:59
Show Gist options
  • Save MatthewBlanchard/103e3445e2bef56f91cd2a62a9b252f6 to your computer and use it in GitHub Desktop.
Save MatthewBlanchard/103e3445e2bef56f91cd2a62a9b252f6 to your computer and use it in GitHub Desktop.
local x, y = math.abs(normalVel.x), math.abs(normalVel.y)
love.graphics.translate(self.AABB.position.x, self.AABB.position.y)
love.graphics.scale(5, 1)
love.graphics.rotate(math.atan2(x, y))
love.graphics.draw(self.mesh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment