How would you edit the Invisicam PlayerModule to react to only the player's torso or act less "sensitive"?

Hi, I’m looking for some help in digesting the complicated conundrum that the Invisicam PlayerModule is to a new programmer such as myself.

I want to make the function of the code less “sensitive”, as in, it should either only take into account the player’s torso when checking for obstructed body parts, or it should need more of the total body to be covered in order to count as obstructed.

Since I’m not sure how the code itself functions, I cant say which way is best. Some help in figuring this out would be appreciated, thanks!


You can see in this image that the player is several feet away from the tree on the left but the code still turns the tree invisible.

You’d have to make it yourself of find the coreScript which is the cause of it.
Then you’d have to send out less raycasts or only send them towards the torso or the middle of your screen.

2 Likes

I think the best solution is to code your own custom camera.
You can use UserInputService.InputChanged to listen to mouse movement and then use raycasting to hide things that should be transparent.

Thanks for the direction, I edited the ray-casts and successfully made it less sensitive to player obstruction. Appreciated!

1 Like

No worries, I am here to help! If you need anything else don’t be shy to reach out. :smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.