Closed Teufelauto closed 4 days ago
Moved math directly after greater than zero check. idk that makes a difference. Shouldn't have been able to change because of y linear locking. Making raycasts longer, since they are short enough that rocking die may affect things.
Raycasts were way too short, because I didn't realize how 'wobbly' physics is in a game engine.. Making them longer.
Still have problems. Will implement more robust math algorithm.
Fixed by adding code to prevent dice results functions from executing after dice are nudged.
On Room Doubles roll: When D66 secondary die skipped over a few dice, the die's value did not add to the room's Y-dimension value. The correct die value shows in scoreboard.
Perhaps adding
if value == 0: wait a small amount and try math again
This is a rare event, so should not cause undue delays.