|
| 01 Aug 2017 12:40 PM |
Working on my own camera, which updates the camera CFrame on the render step event, giving it a new offset based on the characters root position and mouse inputs.
That all works fine, but players can see through walls. My first idea was to create a ray and see if there is a wall behind the player, then change the Z value of the camera offset accordingly. This was VERY inefficient to do practically every frame, but I have no idea how else to go about this.
Anyone worked with something like this before or have an idea? |
|
|
| Report Abuse |
|
| |