move3d_model(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’… move3d_model(3) β€” the Arcan Lua API one, yes bestie, that manual πŸ’…

okay so real talk, this page lives in the Arcan Lua API section of the manual (that's the 3d corner of it, iykyk), and it's about the one little function that yeets your model to a whole new spot in world-space. let's get into it 🫢


✨ NAME ✨

move3d_model β€” sets brand-new world-space coordinates for the model you point at. that's it. that's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

nil
move3d_model( vid:model, float:x, float:y, float:z )
move3d_model( vid:model, float:x, float:y, float:z, uint:time=0 )
move3d_model( vid:model, float:x, float:y, float:z, uint:time, uint:interp=INTERP_LINEAR )

three whole flavors, bestie. pick your fighter ✨ the nil up top is just chillin' there being the return situation.


🌸 DESCRIPTION 🌸

so the <hotpink>move3d</hotpink>, <hotpink>rotate3d</hotpink>, <hotpink>scale3d</hotpink> and the rest of that class of functions? they're basically their 2D siblings but with an extra z coordinate tacked on. like, the 2D version said "here" and the 3D version said "here, but make it depth" 🌈

and here's the tea πŸ“ β€” even though these functions are intended for 3D objects, you can absolutely apply them to 2D objects too. no cap, it works.

⚠️ but. BUT. there may be side-effects to picking and similar operations. not me warning you and then you doing it anyway 😭 so like, lowkey be aware, k?

πŸ¦‹ EXAMPLE πŸ¦‹

here's the whole thing, copy it exactly, don't @ me:

function move3d_model0()
      a = fill_surface(64, 64, 255, 0, 0);
      move3d_model(a, 100, 100, -5, 100);
      show_image(a);
end

look at her go πŸ’… filled a surface, moved it in 3D, showed the image. main character energy fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

the little friend group, go read these too:


and that's the page!! mwah πŸ’– this one came from the 3d manual, dated October 2026 β€” that's the source/version and the date, all cute and accounted for at the very end like a lil sign-off. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from