How To COntroll My Car By the orientation AR marker ?

Hello all I successfully created application : Keyboard controlled car in augmented reality Like the BMW Z4 http://www.bmw.co.uk/bmwuk/augmented_re ... rce=vanity
But Now i want to COntroll my Car by reading the orientation of a new AR marker ?
With Keyboard it´s like this :
// Determine rotation amount from input
Vector2 rotationAmount = new Vector2(0, 0);
if (keyboardState.IsKeyDown(Keys.Left))
{
rotationAmount.X = .1f;
}
if (keyboardState.IsKeyDown(Keys.Right))
{
rotationAmount.X = -.1f;
}
if (keyboardState.IsKeyDown(Keys.Up))
{
//rotationAmount.Y = -1.0f;
thrustAmount = .0001f;
}
if (keyboardState.IsKeyDown(Keys.Down))
{
//rotationAmount.Y = 1.0f;
thrustAmount = -.0001f;
}
Have you any idea how can i read the orientation of a new AR marker to COntroll my car Just left and right ??
But Now i want to COntroll my Car by reading the orientation of a new AR marker ?
With Keyboard it´s like this :
// Determine rotation amount from input
Vector2 rotationAmount = new Vector2(0, 0);
if (keyboardState.IsKeyDown(Keys.Left))
{
rotationAmount.X = .1f;
}
if (keyboardState.IsKeyDown(Keys.Right))
{
rotationAmount.X = -.1f;
}
if (keyboardState.IsKeyDown(Keys.Up))
{
//rotationAmount.Y = -1.0f;
thrustAmount = .0001f;
}
if (keyboardState.IsKeyDown(Keys.Down))
{
//rotationAmount.Y = 1.0f;
thrustAmount = -.0001f;
}
Have you any idea how can i read the orientation of a new AR marker to COntroll my car Just left and right ??
