Stormworks: Build and Rescue

Stormworks: Build and Rescue

AegiusX3 Apr 29, 2020 @ 6:26pm
Is there a way to make a velocity pivot rotate at a set speed?
I am trying to mount a turret on a boat that I am working on, but the velocity pivot is the only pivot that can rotate 360 degrees, but there is no way to stop it from moving or to move at a set speed. Is there any logic that can fix this?
< >
Showing 1-9 of 9 comments
Kahuna Apr 29, 2020 @ 6:28pm 
try hooking it up to a constant number logic block, just a hunch
Unit 744 Apr 29, 2020 @ 6:36pm 
As Deus Vult said, a constant number will cause it to rotate at a fixed speed.

Unlike robotic pivots (which you give a target angle, and it moves to match that angle), velocity pivots take a rotation speed as an input. So, if you give it a value of 1, it will rotate at a speed of '1' forever. If you give it a value of 0.5, if will rotate at half that speed forever. Negative values rotate in reverse. Giving it a value of zero will cause it to stop spinning.
Last edited by Unit 744; Apr 29, 2020 @ 6:37pm
Stinger Apr 29, 2020 @ 6:37pm 
You can get it to a constant speed I think, just set the throttle low enough. Or perhaps use a rotational velocity sensor (that does exist right?) and if the current velocity is above, idk, 10 rotations a minute, clamp input to (-1, 0, 1), and the inverse for if its negative 10 rpm
Kahuna Apr 29, 2020 @ 6:38pm 
a easy way to get it to do what you want is to hook the set point up to a control seat and use a and d to move it you can set the speed lower so it wont be too difficult to get it where you want will stop inputting direction once you let go so the slower the better
Ra-Ra-Rasputin Apr 29, 2020 @ 6:52pm 
If you want an exact speed, read the delta off the current orientation on it, and times that by 60 to get the rate it's rotating in radians per second. At the very least, that's what my 4 am brain is telling me.
Last edited by Ra-Ra-Rasputin; Apr 29, 2020 @ 6:53pm
Jerro Apr 29, 2020 @ 8:21pm 
If you want the turret to lock into specific position you could try adding a mag all that faces down onto the ships deck that can be activated to stop the turret from spinning. If that makes sense.
Derrick da Fox May 31, 2022 @ 8:54am 
Use a clamp. Set the low and high to a low number (Like me, I use .2 and -.2 and it rotates at a slow speed. Because in a controller seat, it sets numbers to 1, 0, and -1, so clamp that bish to a low number and the clamp only allows the powered input that you clamp it to.
Booze_Rooster May 31, 2022 @ 4:21pm 
linear track bases and track grippers hidden in the deck and turret floor with a brake switch toggled by occupancy or a numerical switchbox can lock your turret on centerline when not in use. Had to figure that one out when I built massive autocannon turrets for a build about a year ago. I believe I had a toggle switch set up for travel lock and once turned on, I could swing the turret back across the bow and it would lock into place until I toggled the switch back off.
AegiusX3 May 31, 2022 @ 6:50pm 
Why is this 2 year old post getting comments now?
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Apr 29, 2020 @ 6:26pm
Posts: 9