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.
Angle visualiser thing
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Angle visualiser thing
Last edited by BlackBulletIV on Sat Nov 17, 2012 11:34 pm, edited 1 time in total.
- substitute541
- Party member
- Posts: 484
- Joined: Fri Aug 24, 2012 9:04 am
- Location: Southern Leyte, Visayas, Philippines
- Contact:
Re: Angle visualiser thing
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.
Sometimes lurks around the forum.
-
- Prole
- Posts: 3
- Joined: Sat Oct 13, 2012 12:03 am
- Location: Votorantim, São Paulo, Brasil
Re: Angle visualiser thing
Very useful, I've added to my "must have" list
Thank you!
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.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Angle visualiser thing
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.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) .
Glad you found it useful.YeOleBluegrass wrote:Very useful, I've added to my "must have" list
Thank you!
Re: Angle visualiser thing
Aha, this could be useful to people like me who suck at maths!
Great work, appropriately titled
Great work, appropriately titled
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.
Re: Angle visualiser thing
"Bump." -CMFIend420
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Angle visualiser thing
You mean that thumb stick thing at the bottom-left? I suppose they have some similarities.Helvecta wrote:Oh! This reminds me a lot of the control system for FFIII on Android:
Also, wow, it's been downloaded 77 times already. :O
Re: Angle visualiser thing
Because it's clean, clear and very useful !BlackBulletIV wrote:Also, wow, it's been downloaded 77 times already. :O
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
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Angle visualiser thing
Good to know.Saegor wrote:Because it's clean, clear and very useful !BlackBulletIV wrote:Also, wow, it's been downloaded 77 times already. :O
I've added a screenshot to the main post.
Re: Angle visualiser thing
i used your .love to make my own tutorial-like visualiser thing
i share it here, enjöy !
EDIT : arrows keys to turn/move
i share it here, enjöy !
EDIT : arrows keys to turn/move
Current work : Isömap
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests