Before I go into too much detail I was wondering if anyone has built a reliable hinged door - a full size normal door, like a bedroom door the player can walk through once opened... (using first person controller)
I have 2 problems:
when I grab the door and move mouse left/right to open close.. all seems fine, then it keeps swapping which mouse direction does does what - (left direction was opening door > now its right.. ) - this even happens when I stay in the same position.. just stand there and open and close the door... tried changing "Align drag vector to front". resulted in same consistency.
If I pull the door into the players collider, there is a quick fight between the door and the player - resulting with the door being pulled off its hinges (and maybe the player being popped through a wall... then if you grab the door, give it a quick wiggle, it pops back on the hinge track... (am I right thinking that you are not suppose the set rotation constraints on the rigidbody on the door?)
So before I do any further investigations/explanations - I was wondering if anyone has got this working and I'm just making a mistake somewhere - or was the system never intended to be used for full size doors that can be approached from any direction and pushed pulled into the players collider.... because this isn't a trivial thing to try and do cleanly at all!
Thanks for any input/thoughts.
Comments
Off the top of my head:
> I am disabling free aiming..
> haven't changed physic materials from the original settings..
> the grab position is about in line with the camera.. I'm going to check if the height of the grab position has an affect on the issues originally raised.
Doors are always a pain in the arse - especially first person... and yeah a dedicated bullet proof asset here would be a great way to go... or as HarryOminous has done, use hotspots.
It's always the same - involve physics in your game and it'll work 95% of the time how you want - but when the 5% happens it usually results in game breaking nastyness.
I'll do a stripped-down bare minimum test, and post that to you if I still can't get it to work.