as of now there’s no thorough documentation of our Blockly code library available. Feel free to ask questions related to physics and Blockly in our forum. We’re looking into providing more documentation in the future
Static objects are physics objects that can’t be moved. This is useful when you want to create surfaces other objects can collide against, but are themselves not affected by gravity or move by collisions. In the example below, the lower block is a static physics item while the upper block is a normal physics item.
Simple physics tick rate
This block can change the speed at which all physics blocks from the “simple” category are executed after each other.
The tick rate below is set to one second. Every physics block waits 1 second before continuing to the next one.
Now the tick rate is set to 0. The blocks run directly after each other, causing the block to fly high in the air.
The push block moves an object towards a direction relative to its forward direction (the direction where the object looks to). If your program does not know what the current forward direction of a physics item is, you can use the “push towards” - block.
Local / world space velocity
With the local / world space velocity drop-downs you can define if an object should be given a force relative to its own orientation, or if the force should be applied relative to the scene.
Given this code:
You see this result:
The Red character moves along the Y axis as expected, but the Blue character appears to move along the X axis instead. This is because the local space coordinate behaves like the push block mentioned above. In local space of the Blue item, the Y axis is forward.
I hope this helps you getting started with physics!