An easy maths question

Blitz3D Forums/Blitz3D Beginners Area/An easy maths question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Say I want to move 20 units in a particular direction (ie. the direction the character is facing) - only using the X and Z axis. (I think this is called 'absolute' positioning?) How do I calculate the necessary X and Z values based on the angle alone?

I'm sure trigonometry has something to do with this, but years of alcohol abuse has ruined my memory.