Fix incorrect force threshold in RLGL project (#1912)
* Fix incorrect force threshold in RLGL project * set delta back to 100 in code samples and formula
This commit is contained in:
parent
d2b7f22215
commit
93282e577f
@ -149,12 +149,12 @@ At all times, gravity is applied to the @boardname@, so the acceleration strengt
|
|||||||
If the acceleration strength is far from that value, say ``1100`` or ``900``, we can assume that the player is moving. To compute this we use the formula:
|
If the acceleration strength is far from that value, say ``1100`` or ``900``, we can assume that the player is moving. To compute this we use the formula:
|
||||||
|
|
||||||
```
|
```
|
||||||
moving = | acc strength - 1000 | > 1000
|
moving = | acc strength - 1000 | > 100
|
||||||
```
|
```
|
||||||
|
|
||||||
Now that we know the math for it, we can turn this into code.
|
Now that we know the math for it, we can turn this into code.
|
||||||
|
|
||||||
```block
|
```blocks
|
||||||
let REDLIGHT = 0
|
let REDLIGHT = 0
|
||||||
let state = 0
|
let state = 0
|
||||||
let GREENLIGHT = 0
|
let GREENLIGHT = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user