Hey guys,
I have a double property called cameraAngle which is tied to a rotationtransformation, which is applied to the camera. I have series of 3d tiles with pictures on them (think cooliris), when i click the left key down i want my camera angle to go from 0 - 45 degrees. I know I want to use something like a doubleAnimation, but my cameraAngle is just a member variable, I want the camera to look at the scene from a 45 degree angle, but i want it to steadily go from 0-45 and not do it in a heartbeat. here is my member var
public double CameraAngle
{
get
{
AxisAngleRotation3D rotTemp = cameraRotation.Rotation as AxisAngleRotation3D;
return rotTemp.Angle;
}
set
{
if (value >= 45)
return;
else if (value <= -45)
return;
else
{
AxisAngleRotation3D rotTemp = cameraRotation.Rotation as AxisAngleRotation3D;
rotTemp.Angle = value;
}
}
}