• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Problem with door block (Unity)

Izayo

Survivor
I try to make a slide 1x1 door/hatch for my bunker's window but I have a problem (let's the pictures explain down below)





 
Is your problem that you want the shutter portion of window (green box in both pics) to take damage, whether it's open or shut? In that case, you might have to make it a multidim block 2 m wide, but then you'd have the problem of hits to the area next to the window delivering damage to the shutter even when it's closed. At work at the moment so I can't test it, but I'm pretty sure vanilla doors work the way you have it above--in closed position, you batter the door down, but in open position, you have to target the frame to destroy it.

 
Is your problem that you want the shutter portion of window (green box in both pics) to take damage, whether it's open or shut? In that case, you might have to make it a multidim block 2 m wide, but then you'd have the problem of hits to the area next to the window delivering damage to the shutter even when it's closed. At work at the moment so I can't test it, but I'm pretty sure vanilla doors work the way you have it above--in closed position, you batter the door down, but in open position, you have to target the frame to destroy it.
I have tried what you just said  , yes it work but the box collider is also effect to the blank part (can't walk pass , take damage )  

in my menthod, I just found that if I rotate to some direction  it's work as it supposed to to be (slide to upper direction)



 
Back
Top