Scrap Mechanic

Scrap Mechanic

ScriptableComputer
ASHTON 16 Thg12, 2022 @ 7:01am
radar
how can I make the stepper motor rotate to the angle of the target detected by the radar?
< >
Đang hiển thị 1-1 trong 1 bình luận
***** 29 Thg04, 2023 @ 5:46am 
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
< >
Đang hiển thị 1-1 trong 1 bình luận
Mỗi trang: 1530 50