SMTheGuild / The-Modpack

Scrap Mechanic MOD: The Modpack
https://smtheguild.github.io/The-Modpack/
21 stars 13 forks source link

problems with orientation block #88

Open pou123 opened 4 weeks ago

pou123 commented 4 weeks ago

Description

the orientation block in modes, tracking player and tracker, tracking tracker, and tracking camera return 0 or -0 which both cannot be used, as 0 multiplied is always 0 and because 0 can not return a logic signal

Severity

medium ### Steps to reproduce the bug

orientation block connected to WS or AD converter then connected to number or logic block will return 0, -0 or no logic signal respectively

Expected vs observed behavior

either 1/-1 depending on left/right, up/down or the rotation required to face the direction of tracking thing

Attachments

Essential information

Issue checklist

TechnologicNick commented 3 weeks ago

Did you check the decimals? It's a floating point number that's afaik always between -1 and 1, so it's like 0.24234724 when you're standing not exactly in front of it.