[Solved] Rotating the panel 90 degrees
Quote from dhavalmistry on July 7, 2011, 7:44 amHello 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!
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!
Quote from ChickenMobile on July 7, 2011, 8:09 amlogic_timer
func_door with more func_door's
logic_timer
func_door with more func_door's
Quote from MissStabby on July 7, 2011, 8:24 amwouldnt 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?
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?
Spotlighted and over 9000 downloads!!! SP_Angrybombs
Here's my youtube & deviantart
Quote from ChickenMobile on July 7, 2011, 9:39 amMissStabby 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.
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.
Quote from dhavalmistry on July 7, 2011, 10:04 amchickenmobile 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?
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?
Quote from Rand0mNumbers on July 7, 2011, 7:11 pmTry 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.
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.
Quote from dhavalmistry on July 7, 2011, 8:48 pmKasc 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.
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.
Quote from ChickenMobile on July 8, 2011, 5:34 amdhavalmistry 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.
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.
Quote from dhavalmistry on July 8, 2011, 7:11 amchickenmobile 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.
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.

z