Angle visualiser thing

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Angle visualiser thing

Post by BlackBulletIV »

Since I was getting confused as to where angles start in Love2D (FlashPunk starts on the opposite side to Love2D), I made this utility which shows the 0 degree point, and the direction angles travel in. It also shows the angle from the centre of the screen to the mouse.

So, for future reference: angles start on rightmost side of a circle, and travel clockwise.
angles.love
(955 Bytes) Downloaded 415 times
Image
Last edited by BlackBulletIV on Sat Nov 17, 2012 11:34 pm, edited 1 time in total.
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Angle visualiser thing

Post by substitute541 »

I had lots of experience with clockwise angle system (Flash and it's programming language [AS 3.0] does use the video coordinate system, aka, those with Y values increasing downwards) .
Currently designing themes for WordPress.

Sometimes lurks around the forum.
YeOleBluegrass
Prole
Posts: 3
Joined: Sat Oct 13, 2012 12:03 am
Location: Votorantim, São Paulo, Brasil

Re: Angle visualiser thing

Post by YeOleBluegrass »

Very useful, I've added to my "must have" list :D

Thank you!
Good work getting this far, future starter! That said, if you are simple-minded, old, or irradiated in such a way that the future should not start with you, please return to your primitive tribe and send back someone better-qualified for testing.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Angle visualiser thing

Post by BlackBulletIV »

substitute541 wrote:I had lots of experience with clockwise angle system (Flash and it's programming language [AS 3.0] does use the video coordinate system, aka, those with Y values increasing downwards) .
Clockwise appears to be the norm. Flash and Love2D use it, but Flash, at least with FlashPunk, uses angles that at the left side of the circle. Also, Love2D uses the same coordinate system.
YeOleBluegrass wrote:Very useful, I've added to my "must have" list :D

Thank you!
Glad you found it useful.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Angle visualiser thing

Post by Lafolie »

Aha, this could be useful to people like me who suck at maths!

Great work, appropriately titled :P
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
Helvecta
Party member
Posts: 167
Joined: Wed Sep 26, 2012 6:35 pm

Re: Angle visualiser thing

Post by Helvecta »

Oh! This reminds me a lot of the control system for FFIII on Android:

[ 2:38 ]
"Bump." -CMFIend420
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Angle visualiser thing

Post by BlackBulletIV »

Helvecta wrote:Oh! This reminds me a lot of the control system for FFIII on Android:
You mean that thumb stick thing at the bottom-left? I suppose they have some similarities.

Also, wow, it's been downloaded 77 times already. :O
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Angle visualiser thing

Post by Saegor »

BlackBulletIV wrote:Also, wow, it's been downloaded 77 times already. :O
Because it's clean, clear and very useful !


EDIT :

i suggest you replace this line
moveAngle = (moveAngle + math.pi * dt) % (math.pi * 2)
by this one
moveAngle = (moveAngle + dt) % (math.pi * 2)

and this one
love.graphics.print("Purple line is 0 degrees/radians\nRed line shows the direction angles move in (clockwise)\nHold shift to snap mouse to increments of 10 degrees", 5, 5)
by this one
love.graphics.print("Purple line is 0 degrees/radians\nRed line shows the direction angles move in (clockwise)\nHold shift to snap mouse to increments of "..snapDegrees.." degrees", 5, 5)
Last edited by Saegor on Sun Nov 18, 2012 1:34 pm, edited 1 time in total.
Current work : Isömap
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Angle visualiser thing

Post by BlackBulletIV »

Saegor wrote:
BlackBulletIV wrote:Also, wow, it's been downloaded 77 times already. :O
Because it's clean, clear and very useful !
Good to know. :)

I've added a screenshot to the main post.
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Angle visualiser thing

Post by Saegor »

i used your .love to make my own tutorial-like visualiser thing

i share it here, enjöy !
trigo.love
(969 Bytes) Downloaded 290 times
EDIT : arrows keys to turn/move
Current work : Isömap
Post Reply

Who is online

Users browsing this forum: No registered users and 206 guests