Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Getting angle from sprite velocity

Author
Message
Scotty1973
AGK Backer
15
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 7th May 2014 18:07
Hi

Is there a way to get the angle a sprite is moving in from the sprite velocity? I know you can get the x and y components from the velocity but dont know how to get the angle from these.

Thanks for any help.

Scotty
lilpissywilly
AGK Developer
15
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 7th May 2014 18:42


There ya go

My hovercraft is full of eels
Scotty1973
AGK Backer
15
Years of Service
User Offline
Joined: 2nd Jun 2011
Location: Burton-on-Trent, uk
Posted: 7th May 2014 21:35
Many thanks, wish I could remember all the maths from school LOL.


Scotty
lilpissywilly
AGK Developer
15
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 8th May 2014 16:55
No need, that's why the internet was invented!

My hovercraft is full of eels

Login to post a reply

Server time is: 2026-07-26 07:56:51
Your offset time is: 2026-07-26 07:56:51