Jump to content

Problem with door block (Unity)


Izayo

Recommended Posts

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.

Link to comment
Share on other sites

20 minutes ago, Cranberry Monster said:

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)

s3B5Zf.Untitled.png

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...