mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 09:21:35 +00:00
Update examples
This commit is contained in:
@ -137,3 +137,8 @@ function bench(steps) {
|
||||
system.advance(0.01);
|
||||
}
|
||||
exports.bench = bench;
|
||||
function getBody(index) {
|
||||
var bodies = system.bodies;
|
||||
return index < bodies.length ? bodies[index] : null;
|
||||
}
|
||||
exports.getBody = getBody;
|
||||
|
Reference in New Issue
Block a user