Skip to content

Instantly share code, notes, and snippets.

View f2l2pe's full-sized avatar
🐧

Fillippe f2l2pe

🐧
  • Brazil
  • 04:29 (UTC -03:00)
View GitHub Profile
local function check_collision(self, pos)
local function draw_ray(from, to)
local groups = { hash("level") }
local color = vmath.vector4(0, 1, 0, 1)
return data.draw_ray(from, to, groups, color)
end
self.ray_origins = {
tl = self.old_pos + self.col_pos.tl,
tr = self.old_pos + self.col_pos.tr,