FirstPersonKSP / FreeIva

Work in progress mod for Kerbal Space Program which allows getting out of your seat and moving around the vessel while on IVA.
GNU General Public License v2.0
22 stars 7 forks source link

Door colliders should change to props layer when opened #376

Open JonnyOThan opened 7 months ago

JonnyOThan commented 7 months ago

Currently the door colliders are disabled when they are opened. But they should just be changed to layer 20 so that they still block clicking on things behind them, and possibly later can be grabbed as physical props.

It's a little tricky though, because currently SetDoorCollidersEnabled affects all colliders in children that are on layer 16. If we simply changed them to layer 20 then they could become hard to differentiate from handles (which should definitely NOT swap back to layer 16 when the door is closed) and this might also adversely affect anything else that is listening for mouse clicks.