Swinging brush

Avatar
gompasta
109 Posts
Posted Jun 04, 2011
Without going into spoilers for my new map series, i need a swinging, back and forth motion, for a brush with others parented to that. I have got a func_rotating to test the parenting and such, and that works fine, but i need a smooth back/forth motion for that brush.

Any ideas?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Aldéz
221 Posts
Posted Jun 04, 2011
Replied 2 hours later
I'm not good with the physics entities, but maybe "phys_ballsocket" and "phys_thruster" can help?
Avatar
ChickenMobile
2,460 Posts
Posted Jun 04, 2011
Replied 6 minutes later
Try a func_rot_but (as it can rotate in exact degrees) and can 'swing' by using the inputs 'PressIn' and 'PressOut' When it is 'OnFullyOpen' and 'OnFullyClosed'. Make sure that you set it's flag to rotate on either the x or Y plane (depending on what way you want it to swing) and use the spawn angles to spawn 50% one way so it doesn't appear to rotate unnaturally.
Avatar
gompasta
109 Posts
Posted Jun 04, 2011
Replied 36 minutes later
The problem is, i want it to be a smooth motion. With that, it will change direction too abruptly, and then, making it look awful.
Avatar
ChickenMobile
2,460 Posts
Posted Jun 04, 2011
Replied 33 minutes later
All I can think of is a func_train that travels between points. You can change the speed of the object between paths but I'm not sure if it can be rotated. Maybe you can have the button parented to an object on a path? Don't know if this would look weird though.
Advertisement
Registered users don’t see ads! Register now!
Avatar
gompasta
109 Posts
Posted Jun 04, 2011
Replied 47 minutes later
I have never used trains, so i never thought to try that. Anyway, thanks for the replys, but i scrapped that idea, because it doesnt fit in with the map.