physics

API -

return function()
    local app = getApp();
    local myObject = app.createGameObject();
    wait(3);
    myObject.physics.hasRigidBody = true;
    myObject.physics.addBoxCollider();
    myObject.physics.setVelocity(0, 100);
    
    --as soon as the script ends the object will be destroyed automatically.
    keepAlive();
end
ObjectPhysics

Last updated