I have a problem on how to set the entity or the mesh file face the camera current position
My game is having a first person camera wherein I will also set up an OIS left click where the mesh file will face towards the camera
Any help??
Use this as a base, but instead of rotating your mesh in the walking direction as explained in the example, use your camera position as the rotation target:
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Yes either the getRotationTo or lookAt. Both should match your requirements, at least off the top of my head.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...