Scrap Mechanic

Scrap Mechanic

ScriptableComputer
ASHTON 16 grudnia 2022 o 7:01
radar
how can I make the stepper motor rotate to the angle of the target detected by the radar?
< >
Wyświetlanie 1-1 z 1 komentarzy
***** 29 kwietnia 2023 o 5:46 
i assume u have the angle to the target, so maybe just:

motor.setVelocity(a lot)
motor.setStrength(a lot)
motor.setActive(true)
setAngle(Target angle)

maybe, converting the Target angle to degrees is required, so target angle*180/math.pi should work
< >
Wyświetlanie 1-1 z 1 komentarzy
Na stronę: 1530 50