MaximumADHD / Character-Realism

A flexible character enhancement system for Roblox.
Mozilla Public License 2.0
103 stars 25 forks source link

First Person Head can see through walls (v2021.2.15) #17

Open CoreyStar7 opened 2 years ago

CoreyStar7 commented 2 years ago

As of writing this there's currently a problem of which being in First Person leads to the player being able to look down at the ground close to a wall, thus seeing through it. Could this potentially be fixed by offsetting the Vector3 cords found in the FpsCamera module or is this an issue with the way body and head movement is tracked in the direction of the camera? I've linked a video down below that further demonstrates what I'm asking.

https://user-images.githubusercontent.com/64766411/162871626-ac39629f-81c9-4feb-8bff-844052e0b185.mp4

Kassiee commented 2 years ago

yeah I've got this problem too and it's too annoying

VintageTom commented 1 year ago

https://user-images.githubusercontent.com/78865116/215362715-4f8cf260-7f44-40ac-b572-d4800fc019fe.mp4

Hey, since this issue is caused, because of the animation that lets the player's head go through walls/objects you could just enable "CanCollide" for the character's head. This should fix the issue

Possible fix for this would be to just turn "CanCollide" on by default with the realism script.

5h1b commented 1 year ago

To do it go to StarterPlayer > StarterPlayerScripts > RealismClient > Line 49 > parent.CanCollide = False > True Should look like this! Screenshot 2023-08-21 195946