Constraints, Trains and Automobiles

Avatar
SpAM_CAN
103 Posts
Posted Dec 21, 2011

Hey folks, just trying to get something working. I'm trying to do a train ride, with the train on a hinge so that when it slows down, it shakes, and looks less rigid and more fluid.

http://elitetreacle.info/Capture.png (the black is the toolsblack texture, not the void :3)

Basically, my set up is a func_tracktrain on a track, which works fine. At every corner, a sound plays from the train, again working fine. To have a train rotate when it raises at one point, I parented a func_door_rotating to the train and made it go 180* on the X Axis, working nicely. Now, the problem is getting the phys_hinge working properly.

The entire thing works fine if I take the constraint out of the equation and parent the prop_physics straight to the func_door_rotating. I've tried various constraints and all it does is deletes the prop_physics (and removes all children).

So yeah... is there any way of getting this working? With a hinge it would feel so much better than without.

(This is a repost from the Steam Forums because I am lazy to retype stuffs.)

Advertisement
Registered users don’t see ads! Register now!
Avatar
Mr. P. Kiwi
97 Posts
Posted Dec 21, 2011
Replied 3 hours later
Why aren't you using path_tracks and env_shake to get your train moving and to add the shake effect at the end? It would be much easier, you can specify the speed the train moves at at each point of the track with these.
Avatar
SpAM_CAN
103 Posts
Posted Dec 21, 2011
Replied 1 hour later
I AM using path_tracks >.> Thats what the func_tracktrain runs on.

Also, env_shake isn't what I'm looking for, I want the train to actually swing slightly (if I have to, i'll fall back to that)

Avatar
spongylover123
944 Posts
Posted Dec 21, 2011
Replied 28 minutes later

SpAM_CAN wrote:
I AM using path_tracks >.> Thats what the func_tracktrain runs on.

Also, env_shake isn't what I'm looking for, I want the train to actually swing slightly (if I have to, i'll fall back to that)

Take a look in hammer, sp_a1_intro 1 in the wake up room.
But the whole room is a model, when Wheatley moves your relaxation vault in manual override.

Avatar
SpAM_CAN
103 Posts
Posted Dec 21, 2011
Replied 24 minutes later
Its a model with animations of swinging and such :c

EDIT: Maybe not. Gimme a mo xD

For some reason the map won't decompile with all I/O intact :v

Avatar
spongylover123
944 Posts
Posted Dec 21, 2011
Replied 42 minutes later

SpAM_CAN wrote:
Its a model with animations of swinging and such :c

EDIT: Maybe not. Gimme a mo xD

For some reason the map won't compile with all I/O intact :v

go into the model view in the Portal 2 SDK
and look at props in the folder labeled container ride

Advertisement
Registered users don’t see ads! Register now!
Avatar
SpAM_CAN
103 Posts
Posted Dec 21, 2011
Replied 29 minutes later
Its Portal, not 2 that i'm working with >.>

Also, env_shake doesn't work with a point_viewcontrol.