return function()
local app = getApp();
local myObject = app.createGameObject();
wait(3);
myObject.physics.addBoxTrigger();
myObject.physics.hasRigidBody = true; --creates a rigidbody on the object.
log(myObject.physics.hasRigidBody);
--as soon as the script ends the object will be destroyed automatically.
keepAlive();
end