Physics Doors
Post Reply
Quote
Re: Physics Doors
Posted by itisjp on Sat Dec 4th at 5:47am 2004


The Physics Doors are killing me. Every time I compile a map with them they just fall to the floor when touched. I have tried the tutorial from

http://www.interlopers.net/content.php?article.68

I can't get it to work. I have a door frame that I changed into a entity_brush, a door that is a func_physbox entity. I connect the door and the door frame with a phys_hinge entity. I put the phys_hinge entity between the door frame and the door ( I also set up the entity 1 and entity 2 targets with door_frame and door. I then compile the map and then soon as I touch the door it falls straight to the floor. Any Ideas on how to make the Physics Doors to work? I am stumped and not for the first time.

Thanks for the Time,

Jp





Quote
Re: Physics Doors
Posted by Nanodeath on Sat Dec 4th at 6:01am 2004


You might also try this tutorial

http://sourcedc.com/tutorial.php?tut=17

But...make sure you're moving the origin of the hinge entities. The line connecting the entity and its origin represents the axis of rotation...also, check to see if there are any compile errors, or any errors when you enter the game. I've gotten "error, bad phys_hinge data" in the past in the console.





Quote
Re: Physics Doors
Posted by Night-Wolf on Sat Dec 4th at 6:58am 2004


Haha I was going to post on this today as I am having the exact same problem! AS Nano mentions there is a line you can draw from the centre of the hinges(by dragging the little circle) to anywhere. The problem is, it doesnt tell you where to put the line in any of the tutorials! Ill have a fiddle and post my findings.



Quote
Re: Physics Doors
Posted by Night-Wolf on Sat Dec 4th at 7:09am 2004


ok figured it out, just drag those little circles inside the hinges directly up and down. worked for me!



Quote
Re: Physics Doors
Posted by Nasher on Sat Dec 4th at 3:06pm 2004


I was having this problem to, I follow that tutorial, but soon as I touched the door it would just fall over

Btw what do you mean by drag the white cercles directly up and down?





Quote
Re: Physics Doors
Posted by Night-Wolf on Sat Dec 4th at 3:17pm 2004


Ok when you place the hinge entity if you look in the middle of the square theres a little cirlce, drag it (in the side view) directly up for the top one and down for the bottom one. Hard to explain without pics. Imagine it so your making a line horizontal.



Quote
Re: Physics Doors
Posted by itisjp on Sat Dec 4th at 4:09pm 2004


Ok .....still fallling to the ground. But I am playing with the hinge axis now. I have set the axis of rotation straight down for both hinges (in the side view window). My next question is do you need the axis of rotation from the physics hinge inside the func_physbox door? (Similar to the the func_rotating_door from old half-life) Or do you want the physics hinge axis inside the doorframe? Or do you want the physics hinge axis where the door and the frame meet?



Quote
Re: Physics Doors
Posted by Night-Wolf on Sat Dec 4th at 6:18pm 2004


On mine I put it straight into the door frame up and down. Ok imagine having a piece of cardboard, and you want to make a door type thing(like an Xmas card!) you would score a line from top to bottom, thats the kind of thing your trying to create using the hinge Axis lines. Hope that makes sense!





Quote
Re: Physics Doors
Posted by Night-Wolf on Sat Dec 4th at 7:45pm 2004


I got mine working but now have the problem of them being 'stiff'! I can only push them open a tiny bit! What setting can I use to make them 'lighter'?



Quote
Re: Physics Doors
Posted by Nanodeath on Sat Dec 4th at 7:52pm 2004


Since they interact as normal physics objects, make sure they aren't directly touching the wall...they need some room to rotate. Maybe? Try that.



Quote
Re: Physics Doors
Posted by itisjp on Sat Dec 4th at 8:26pm 2004


I got mine working finally. I probabally would have gotten them to work sooner if I did not have the hinge tied to the worng door entity.....Doh! If they are sticking check the friction value in the physics hinge ( I set mine on 2 or 3) or make the door a little smaller on the side you do not have the hinges attached to ( that way it will not stick on the door frame).




Post Reply