Physics Doors

Physics Doors

Re: Physics Doors Posted by itisjp on Sat Dec 4th 2004 at 5:47am
itisjp
18 posts
Posted 2004-12-04 5:47am
itisjp
member
18 posts 2 snarkmarks Registered: Dec 3rd 2004 Occupation: Programmer Location: USA
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
Re: Physics Doors Posted by Nanodeath on Sat Dec 4th 2004 at 6:01am
Nanodeath
356 posts
Posted 2004-12-04 6:01am
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
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.
Re: Physics Doors Posted by Night-Wolf on Sat Dec 4th 2004 at 6:58am
Night-Wolf
100 posts
Posted 2004-12-04 6:58am
100 posts 20 snarkmarks Registered: Nov 23rd 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.
Re: Physics Doors Posted by Night-Wolf on Sat Dec 4th 2004 at 7:09am
Night-Wolf
100 posts
Posted 2004-12-04 7:09am
100 posts 20 snarkmarks Registered: Nov 23rd 2004
ok figured it out, just drag those little circles inside the hinges directly up and down. worked for me!
Re: Physics Doors Posted by Nasher on Sat Dec 4th 2004 at 3:06pm
Nasher
12 posts
Posted 2004-12-04 3:06pm
Nasher
member
12 posts 1 snarkmarks Registered: Dec 2nd 2004 Occupation: oddjob Location: UK
I was having this problem to, I follow that tutorial, but soon as I touched the door it would just fall over :sad:

Btw what do you mean by drag the white cercles directly up and down?
Re: Physics Doors Posted by Night-Wolf on Sat Dec 4th 2004 at 3:17pm
Night-Wolf
100 posts
Posted 2004-12-04 3:17pm
100 posts 20 snarkmarks Registered: Nov 23rd 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.
Re: Physics Doors Posted by itisjp on Sat Dec 4th 2004 at 4:09pm
itisjp
18 posts
Posted 2004-12-04 4:09pm
itisjp
member
18 posts 2 snarkmarks Registered: Dec 3rd 2004 Occupation: Programmer Location: USA
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?
Re: Physics Doors Posted by Night-Wolf on Sat Dec 4th 2004 at 6:18pm
Night-Wolf
100 posts
Posted 2004-12-04 6:18pm
100 posts 20 snarkmarks Registered: Nov 23rd 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!
Re: Physics Doors Posted by Night-Wolf on Sat Dec 4th 2004 at 7:45pm
Night-Wolf
100 posts
Posted 2004-12-04 7:45pm
100 posts 20 snarkmarks Registered: Nov 23rd 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'?
Re: Physics Doors Posted by Nanodeath on Sat Dec 4th 2004 at 7:52pm
Nanodeath
356 posts
Posted 2004-12-04 7:52pm
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
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.
Re: Physics Doors Posted by itisjp on Sat Dec 4th 2004 at 8:26pm
itisjp
18 posts
Posted 2004-12-04 8:26pm
itisjp
member
18 posts 2 snarkmarks Registered: Dec 3rd 2004 Occupation: Programmer Location: USA
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).