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

3rd cam player position

$
0
0

 

Hello everyone.

I have my camera in third person, as shown below.

As you can see, the player is in the center, covering the crosshairs and making it difficult.

How do I move the player to the side as shown in the image below (there I used a free camera to demonstrate), such as the GTA 5 camera.

 

if I add a value to the x axis of the player model it even works. But if I keep turning the mouse to look around, start and unconfigure the camera:

glm::vec3 pos = camera.Front;
pos.y = 0;
pos …

Viewing all articles
Browse latest Browse all 17063

Trending Articles



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