Scrap Mechanic

Scrap Mechanic

333 ratings
Camera Controls
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
8.364 MB
1 Jul, 2018 @ 11:20am
1 Jun, 2022 @ 7:34am
12 Change Notes ( view )

Subscribe to download
Camera Controls

Description
This mod adds a Gyro Sensor that compares the direction of the Gyro Sensor to the direction of the camera of the player.

Connect it to electric engines to create a turret that you can control using your camera. You can also connect it to a logic gate to do some other stuff.

OUTPUTS:
  • Yaw (Positive) = Player is looking to the left
  • Yaw (Negative) = Player is looking to the right
  • Pitch (Positive) = Player is looking down
  • Pitch (Negative) = Player is looking up
  • Roll (Positive) = The Gyro's side to the right of 'TOP' is higher than the side to the left of 'TOP'
  • Roll (Negative) = The Gyro's side to the right of 'TOP' is lower than the side to the left of 'TOP'

HOW TO CONNECT:
Driver's Seat -> Gyro Sensor -> Gyro Outputs -> Electric Engines -> Bearings

HOW TO MAKE A TURRET:
It works the best if you apply the Yaw first, then the Pitch and finally the Roll.
>>Example<<

TODO:
  • Add raycast mode.
  • Add raycast mode that includes the drop of potatoes.
242 Comments
TechnologicNick  [author] 25 Jun @ 7:14am 
?
MAKTRAE 25 Jun @ 5:10am 
почему раньше можно было наводиться даже находясь в камере ( например Фант или нью легенд) а теперь нельзя или просто у меня баг был
Kraton 13 May @ 5:06am 
please add compatibility with survival
Sem 5 Apr @ 2:40am 
Multiply the yaw or other signal by 35, send this value to a smart engine and plug in a bearing, giving power (black-painted block) and speed (white-painted block).

This won't create a dead zone, but it will reduce the yo-yo effect.
Mixxer200db 4 Apr @ 6:55am 
I downloadeed the modpack continuation mod and i cant figure out how to add a deathzone with it
TechnologicNick  [author] 31 Mar @ 5:24pm 
You can add deadzones with other mods like the The Modpack Continuation mod. I don't have plans to update this mod any time soon.
Mixxer200db 28 Mar @ 2:20pm 
It does barrerly work please please add a bit of deatchzone cause my plane is going up and down left and right non stop cause there is no deathzone. Exactly what DarqousLeblack said "would it be possible to add a neutral position for the gyro so it indicates neither left/right nor up/down?"
Sem 18 Mar @ 3:21pm 
Prob solved, sry, it's my fault, the gyro block force against an other...
TechnologicNick  [author] 18 Mar @ 2:15pm 
I don't understand what you mean. The Gyro Sensor does not apply any physical forces, only when you connect one of the output to something like an engine, and connect the engine to a bearing, will something happen.
Sem 18 Mar @ 1:28pm 
hi, for me the mod works great, nice!
But I still have a problem, the vehicle is glitch, I mean it seems to float when you play with the bridge at the bottom of the creation.

This comes from the gyro? would there be a way to correct the problem?