Help, physical swing.

  • Thread starter Thread starter Wrath
  • Start date Start date
W

Wrath

Guest
Hi, I'm making my first map ever, I've been able to figure a lot of stuff out but one thing I can't figure out is how to make a swing (like a childrens swing in school) that was possible to move on contact.

Here's how I thought I would try it and then what happened:

1) I created the basic frame of the swing

2) created move_rope entity with name "rope1" and next keyframe "end1"

3) created the seat

4) created keyframe_rope entity and connected that to the seat with the name "end1"

5) applied func_physbox to seat

6) applied another rope and end...

7) made "keyframe_rope" with the parent of "seat1" (the seat)

I thought this would work, it seemed logical to me




What turned out to actually happen though was far different than I had hoped for:






As you can see the rope attached itself to a fence I had in the map... also if you look at the hammer view you will see that the rope goes green to red, which I'm assuming means a broken rope and rope end.

So if anyone could please help me with this I would be much appreciated, I'm at the end of my rope (no pun intended).
 
I cant help, but when you fix it, can you release just that little swing thing to play with? Pretty please ;p
 
azz0r said:
I cant help, but when you fix it, can you release just that little swing thing to play with? Pretty please ;p

lol, sure. I thought it was creative too :).
 
As far as I know there is a bug giving rope entitys parents, try giving the move_rope the parent and place keyframe_rope at the top.
 
HunterSeeker said:
As far as I know there is a bug giving rope entitys parents, try giving the move_rope the parent and place keyframe_rope at the top.

when I do that without the func_physbox added to the seat the ropes at least show up in place, but when I place the func_physbox the ropes disapear upon rendering (ingame)...is there some other entity I should use to get the seat to move and then have the ropes follow the seat?
 
I belive theres a phys_constraint_ball or something like that (sorry, not at PC)

Constraint is used so that two pieces can stick together and move together. You'll need whichever _ball_ entity it is to stick the seat to the end of the rope I believe.
 
Back
Top