Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 17 December 2012 - 06:33 AM
Posted 17 December 2012 - 07:54 AM
capsuleMesh->LookAt(camera->m_vLook.x, camera->m_vLook.y, camera->m_vLook.z);
Edited by Medo3337, 17 December 2012 - 08:36 AM.
Posted 18 December 2012 - 05:42 PM
Posted 18 December 2012 - 06:01 PM
[ cam._11 cam._12 cam._13 0.0] [ cam._21 cam._22 cam._23 0.0] [ cam._31 cam._32 cam._33 0.0] [ 0.0 0.0 0.0 1.0]
Posted 21 December 2012 - 01:21 PM
maybe you could transform 0,0,1 vector (or any) by the view matrix. Resulting vector should be pointing in the direction of view, considered it to be a world space vector. It might be performance wiser operation then decomposing view matrix.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.