addBoxCollider

API -

return function()
    local app = getApp();
    local myObject = app.createGameObject();
    wait(3);
    myObject.physics.hasRigidBody = true;
    myObject.physics.addBoxCollider();
    keepAlive();
end

Last updated