Jump to content

  • Log In with Google      Sign In   
  • Create Account

Henri Korpela

Member Since 20 Nov 2011
Offline Last Active Nov 16 2012 02:38 PM

Posts I've Made

In Topic: Utilizing vectors to move entities in 3D space

15 November 2012 - 02:48 AM

Thanks, Kyall, for such a useful post! Now I see what are the benefits of using plain coordinates instead of angles to represent direction of where to go to. There's no need to recalculate direction when you can just sum it up to already existing coordinates in order to move requested entity. Simple yet satisfying.

Anyway, could somebody still prove why this is true to deepen my understanding (and possibly the other's following this topic):
[source lang="c++"]result.x = cos( direction.x ) * magnitude - sin( direction.y ) * magnituderesult.y = sin( direction.x ) * magnitude + cos( direction.y ) * magnitude[/source]

In Topic: OpenAL + stb_vorbis - playing .ogg files?

26 April 2012 - 11:42 AM

I'm just wondering why my static member function _load_ogg does not work correctly... Could somebody explain me why?