Stormworks: Build and Rescue

Stormworks: Build and Rescue

Dima Oct 5, 2021 @ 10:32am
Turret control
How to make the turret look at where the camera is looking at ?
The robotic pivot is limited and the velocity pivot is not reliable and get out of sync at some point.
< >
Showing 1-8 of 8 comments
LoSboccacc Oct 5, 2021 @ 10:37am 
put two robotic pivot one on top another, and halve each their inputs, duh
Ra-Ra-Rasputin Oct 5, 2021 @ 10:38am 
If the velocity pivot gets out of sync that just means your or someone else's elementary math is off.
Dima Oct 5, 2021 @ 10:44am 
Originally posted by LoSboccacc:
put two robotic pivot one on top another, and halve each their inputs, duh
still limited


Originally posted by Ra-Ra-Rasputin:
If the velocity pivot gets out of sync that just means your or someone else's elementary math is off.
there are external force that can move it and is make a jump if the mouse input change from -49 to +49

both methods work but this is not a good solution
Last edited by Dima; Oct 5, 2021 @ 10:45am
Ra-Ra-Rasputin Oct 5, 2021 @ 10:46am 
Originally posted by Dima:
there are external force that can move it and is make a jump if the mouse input change from -49 to +49

both methods work but this is not a good solution

Ah, you're using the small one that doesn't report its location so you can't force it to that location but instead "work blindly" as it were.
Use the bigger one. :)
With that you can get the exact angle it's facing at all times as an output and work from there. Works fine with a very basic PID.
Last edited by Ra-Ra-Rasputin; Oct 5, 2021 @ 10:47am
LoSboccacc Oct 5, 2021 @ 10:49am 
Originally posted by Dima:
Originally posted by LoSboccacc:
put two robotic pivot one on top another, and halve each their inputs, duh
still limited

do people have to spell out everything for you? use 4 blocks to reach full 360.
Ra-Ra-Rasputin Oct 5, 2021 @ 10:51am 
Originally posted by LoSboccacc:
Originally posted by Dima:
still limited

do people have to spell out everything for you? use 4 blocks to reach full 360.
You would still be limited by that. After turning enough clockwise you'd have to turn counter-clockwise because eventually you'll hit a limit.

Also stacking multiple pivots like this is a bad idea, because it stresses the physics engine.
Dima Oct 5, 2021 @ 12:21pm 
Ah, you're using the small one that doesn't report its location so you can't force it to that location but instead "work blindly" as it were.
Use the bigger one. :)
With that you can get the exact angle it's facing at all times as an output and work from there. Works fine with a very basic PID. [/quote]

Works better but still jumps around by .49 -.49 change of the mouse input. I think i wait for a workshop controler, thx
GerthQuake Oct 5, 2021 @ 1:51pm 
Originally posted by LoSboccacc:

do people have to spell out everything for you? use 4 blocks to reach full 360.
Imagine being a pretentious ♥♥♥♥ on a steam forum that's 85% children.
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Oct 5, 2021 @ 10:32am
Posts: 8