Skip to content

Instantly share code, notes, and snippets.

@bagobor
Created February 25, 2013 09:06
Show Gist options
  • Save bagobor/5028614 to your computer and use it in GitHub Desktop.
Save bagobor/5028614 to your computer and use it in GitHub Desktop.
Evaluate the camera’s position expressed as a vector at a specific time.
NoteA transformation matrix is not needed to evaluate a camera's position.
// Given a scene, we can create a camera
FbxCamera* myCamera = FbxCamera::Create (myScene, "");
// Store the value of the property in an animation curve node
FbxAnimCurveNode& myCameraPositionVector;
// Get and store the value of the camera's local translation
myCameraPositionVector = mySceneEvaluator->GetPropertyValue (myCamera->Position, myTime);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment