Please or Register to create posts and topics.

[Solved] Rotating the panel 90 degrees

Page 1 of 2Next

Hello all,

I was wondering how I would rotate a panel 90 degrees every 10 second or so, much like in this video.

http://www.youtube.com/watch?v=oyAVJ3we ... 8&index=19

The energy ball spawner is rotating 90 degrees on Y axis every 10 seconds or so.

Thanks in advance!

logic_timer
func_door with more func_door's

?????????????????????????????TWP Releases | My Workshop

wouldnt it be more practical to add a single func_rotating with a set speed (90 degrees a second) and having the start&stop being set at exact 1 second intervals by a timer?

Portal 2 Marriage Proposal project: Linking Annex
Spotlighted and over 9000 downloads!!! SP_Angrybombs


Here's my youtube & deviantart
MissStabby wrote:
wouldnt it be more practical to add a single func_rotating with a set speed (90 degrees a second) and having the start&stop being set at exact 1 second intervals by a timer?

The problem with this is that even though it might seem it will rotate exactly, if it turns enough times (or your computer lags) the func_rotating will eventually go out of line. Hence the need for a door or a func_rot_button.

?????????????????????????????TWP Releases | My Workshop
chickenmobile wrote:
The problem with this is that even though it might seem it will rotate exactly, if it turns enough times (or your computer lags) the func_rotating will eventually go out of line. Hence the need for a door or a func_rot_button.

thats exactly the problem I am having. I have a panel that rotates 90 degrees when button is pressed. If I press it enough times, it goes out of sync.

How can it be fixed?

I made an amazing image just for you:

http://i.imgur.com/MDjX5.jpg

P.S. It spins on the z axis.

Imagez

z axis is up in hammer.

Try a momentary_rot_button and send it SetPosition inputs. That's what is used in here: http://www.youtube.com/watch?v=-Epr3khsZUg

It won't go out of alignment, but I don't know how you'd keep it rotating continuously. The button doesn't wrap around to rotate from 270 to 0, it rewinds. Perhaps momentarily toggling the startdirection keyvalue would help.

Kasc wrote:
I made an amazing image just for you:

P.S. It spins on the z axis.

z axis is up in hammer.

Yes Z is up in hammer. I have a 3d background where Y is up. Anyways, thanks for the image but what I am trying to do is completely different. I have a panel that is standing up (like a wall) and I need it to turn 90 degrees on Z axis when the button is pressed so the player can make a portal on it from each corner of the room and I need it to rotate 90 degrees exactly so that the players can press the button as many times as they wants and not go out of sync.

dhavalmistry wrote:
Anyways, thanks for the image but what I am trying to do is completely different. I have a panel that is standing up (like a wall) and I need it to turn 90 degrees on Z axis when the button is pressed so the player can make a portal on it from each corner of the room and I need it to rotate 90 degrees exactly so that the players can press the button as many times as they wants and not go out of sync.

So is there more than 2 possible directions for the panel to turn?
If there is just two you could be crafty and use a panel with the right animation. Then use either a logic_branch or a math_counter with a logic_case to set the correct animation.
This will also make it look more Portal 2 style.

?????????????????????????????TWP Releases | My Workshop
chickenmobile wrote:
So is there more than 2 possible directions for the panel to turn?
If there is just two you could be crafty and use a panel with the right animation. Then use either a logic_branch or a math_counter with a logic_case to set the correct animation.
This will also make it look more Portal 2 style.

No, I only want the panel to turn in one direction.

Page 1 of 2Next