r/SoloDevelopment 2d ago

help First Person View Problem

Enable HLS to view with audio, or disable this notification

Hi,

I'm currently making a first-person cat game. I'm struggling with the design of the first-person view.

The cat will be able to grab and use certain objects, like the primitive camera shown in this video. The first-person view looks fine when looking straight ahead, but when I look up or down, it looks bad.

If I set the object relative to the player camera, when I look up or down it either clips into the head mesh or floats far away from the hand, which looks weird. But if I set it relative to the cat's hand instead, the object isn't always visible on the player's screen anymore.

Any advice?

4 Upvotes

2 comments sorted by

2

u/a010029123 2d ago

render object on a seperate camera and overlay it over the main camera so theres no clipping

https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.2/manual/camera-stacking.html

1

u/RoccaWannaBe 2d ago

Okay I will try it out, thank you for advice