mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Is jumped should call is freefalling
This commit is contained in:
parent
f669b4bcb7
commit
92297444a0
1 changed files with 1 additions and 6 deletions
|
@ -617,12 +617,7 @@ class Scratch3GdxForBlocks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
whenJumped () {
|
whenJumped () {
|
||||||
const currentVal = this.magnitude(
|
return this.isFreeFalling;
|
||||||
this._peripheral.getAccelerationX(),
|
|
||||||
this._peripheral.getAccelerationY(),
|
|
||||||
this._peripheral.getAccelerationZ()
|
|
||||||
);
|
|
||||||
return currentVal < .5;
|
|
||||||
}
|
}
|
||||||
whenSpinSpeedCompare (args) {
|
whenSpinSpeedCompare (args) {
|
||||||
const currentVal = this.magnitude(
|
const currentVal = this.magnitude(
|
||||||
|
|
Loading…
Reference in a new issue