#How do I make swinging bar/kitchen style doors?

1 messages · Page 1 of 1 (latest)

cinder obsidian
#

I have a hinge node and connected a rigid body 3d and a static body (for the frame) and what I'm struggling with is my character not colliding with the door and only walking through it, perhaps it could be something with the player but I wanted to double check

#

For now, here is also the character, I think this might be a masking problem? If I'm sure?

leaden mural
cinder obsidian
#

I changed it a bit ago to mask layer 4 too on the player and they still walked through the door

leaden mural
#

dunno then, sorry

cinder obsidian
#

It's weird too because I also lifted it up above the map too to see if the map was causing collisions but it wasn't that

leaden mural
#

you've assigned a CollisionShape to your door and the scale on the shape and all its parents is (1,1)?

cinder obsidian
#

Yep

#

Scene for "kitchen door" is just a node3d and a mesh instance too

leaden mural
#

i must sleep. good luck with your project

cinder obsidian
#

Also the collision meshes isn't showing up in debug either which is a bit odd?

#

Wait, I just realized in the clip the doorframe isn't showing up either

#

Ok, I got it to fixed, it was that I accidentally grabbed the mesh of the door instead of the scene but now I'm curious on how to make it so the door doesn't remain open

#

How would I also make it to where the player can't get between the door and the hinge and push it farther than it's supposed to?