actions reactored. multi-tick action support
This commit is contained in:
@@ -23,7 +23,7 @@ Blockly.Blocks['physics_apply_impulse_action'] = {
|
||||
javascriptGenerator.forBlock['physics_apply_impulse_action'] = function (block, generator) {
|
||||
const positionValue = generator.valueToCode(block, 'POSITION', Order.ATOMIC);
|
||||
const forceValue = block.getFieldValue('FORCE');
|
||||
return `api.applyImpulse(${positionValue}, ${forceValue});\n`;
|
||||
return `yield helpers.actions.ApplyImpulse(${positionValue}, ${forceValue});\n`;
|
||||
};
|
||||
|
||||
export { };
|
||||
|
||||
Reference in New Issue
Block a user