FuryFight3r / ScrappingSimulator

A Repository for DefectGamings Scrapping Simulator
4 stars 0 forks source link

[Bug]: some objects have a very unusual click box #89

Open aus2004 opened 1 year ago

aus2004 commented 1 year ago

Describe the bug

Some objects in the game, most notably in the HDD, have a click box larger than the object, and obstructs things which are visible.

Reproduction Steps

No response

Expected behaviour

No response

Screenshot(s)/Video(s)

image

Console output

No response

Player Logs

No response

FuryFight3r commented 1 year ago

Hi there @aus2004

Thank you for reporting this, this is due to my current method of handling the interaction of Components, only Capsule 💊 Shape Colliders (commonly used for the screws) and Box Colliders (basically everything else), so the Platters actually have a Square collider which unfortunately does extend past the circular look of the Platter.

If I were to use Capsule Colliders for the platters, they unfortunately cannot be squished flat, the smallest they can go is to a sphere, so that would yield a similar result in regards to covering other objects behind the Collider.

I could possibly add to the Disassembly Interaction by incorporating the use of Mesh Colliders, which perfectly match the Collider to the Objects Mesh/Model though at the cost of performance.

I could also make the current box collider to be diagonal in proportion to the HDD Case and a little smaller so to minimise blocking other objects within certain camera positions 🙂👍

I will try a few things and see what works 🙂