// Cloned by Ivan Fedorov on 16 Sep 2025 from World "One Cube World (P5)" by Starter user
// Please leave this clone trail here.
const objectsize = 200; // size of object
const anglechange = 0.1; // how much the rotate angle changes each step
var angle = 0; // rotate angle starts at 0
function setup() // "setup" is called once at start of run
{
createCanvas ( ABWorld.fullwidth(), ABWorld.fullheight(), WEBGL );
let options = {
// Enables standardized size scaling during loading if set to true.
normalize: true,
// Function to call once the model loads.
successCallback: handleModel,
// Function to call if an error occurs while loading.
failureCallback: handleError,
// Model's file extension.
fileType: '.stl',
// Flips the U texture coordinates of the model.
flipU: false,
// Flips the V texture coordinates of the model.
flipV: false
};
// Pass the options object to loadModel().
object = loadModel('/uploads/ivanidze24/model.obj', options);
}
function draw() // "draw" is called every timestep during run
{
background("lightblue"); // background color
model(object);
}