Scrap Mechanic

Scrap Mechanic

ScriptableComputer
ASHTON 2022 年 12 月 16 日 上午 7:01
radar
how can I make the stepper motor rotate to the angle of the target detected by the radar?
< >
目前顯示第 1-1 則留言,共 1
***** 2023 年 4 月 29 日 上午 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
< >
目前顯示第 1-1 則留言,共 1
每頁顯示: 1530 50