Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Free Cam to 3rd Cam Help

$
0
0

Hello everyone.

I'm studying opengl and following the tutorials on the learnopengl website (https://learnopengl.com/)

Could someone please help me convert this camera from the learnopengl tutorial, from free camera to third person?

I've tried to put the values ​​of the object (character), but I can't make the camera rotate around the player. Only the object walks in front of the camera, if I turn to the side, the object turns along, look like FPS camera and the object (character) being the weapon (hahahahahahaha)

The code to walk (keyboard):

void processKeyboard(Camera_Movement direction, float deltaTime)
	{
		frontY …

Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>