Making a hitbox

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Dvondrake
Prole
Posts: 29
Joined: Sun Oct 26, 2008 5:53 pm

Making a hitbox

Post by Dvondrake »

---
Last edited by Dvondrake on Mon Jan 21, 2019 10:22 pm, edited 1 time in total.
u9_
Citizen
Posts: 54
Joined: Thu Oct 23, 2008 7:12 am

Re: Making a hitbox

Post by u9_ »

Make sure that v.b:getAngle() returns radians, as that is what is required for sin() and cos(). That could be your problem, because I have noticed LOVE itself wants to use degrees most places, while lua uses radians.
Dvondrake
Prole
Posts: 29
Joined: Sun Oct 26, 2008 5:53 pm

Re: Making a hitbox

Post by Dvondrake »

---
Last edited by Dvondrake on Mon Jan 21, 2019 10:21 pm, edited 1 time in total.
Dvondrake
Prole
Posts: 29
Joined: Sun Oct 26, 2008 5:53 pm

Re: Making a hitbox

Post by Dvondrake »

---
Last edited by Dvondrake on Mon Jan 21, 2019 10:22 pm, edited 1 time in total.
u9_
Citizen
Posts: 54
Joined: Thu Oct 23, 2008 7:12 am

Re: Making a hitbox

Post by u9_ »

:)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests