Jump to content

Entity going through closed door


Core
 Share

Recommended Posts

Ok, I think this is a simple problem, but problem for me nevertheless. I have "helper" in my game and it follows the player. I'm using Follow() function. But it can go through closed doors and other entities, I guess it's movements are only restricted by navmesh. I tried all collision settings, different masses etc. How can I make it "see" doors and other obstacles? I can't walk through it though. 

Link to comment
Share on other sites

Ok, I got around this by adding box primitive with invisible material to the door. I'm not sure if this is a bug or just me, but I'm glad It works now. If there is a more official way to do it, please tell me :)

Link to comment
Share on other sites

Well, it WAS working, now invisible boxes stopped to follow the doors when they open... Well, I knew it was too easy.

But shouldn't entities follow their "parent", which is the door in this case? They actually did first... Next I think I'll try to hide this invisible box when the door is opened and then show it again when closed. Or add door script to pivot and put door model and invisible box under that. Any better ideas?

Link to comment
Share on other sites

Yeah, thanks. I've moved to do other stuff currently, but when I get bag to doors I'll post here if I still have problems. Funny, doors are my nemesis, I think... I've had lots of problems with them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...