rotate3d_model(3)
π rotate3d_model β like, the whole manual page, bestie
okay so real talk: this is rotate3d_model(3) from the Arcan Lua API, and it's genuinely one of those little functions that eats. let me put you on π
β¨ NAME β¨
rotate3d_model β set the current rotation for the specified model. that's it. that's the vibe. π
β¨ SYNOPSIS β¨
nil
rotate3d_model( vid:model, number:roll, number:pitch, number:yaw )
rotate3d_model( vid:model, number:roll, number:pitch, number:yaw, int:
dt )
rotate3d_model( vid:model, number:roll, number:pitch, number:yaw, int:
dt, int:mode )
so you've got three whole ways to call her β the plain three-angle serve, the one with a dt, and the full six-argument moment where mode finally shows up. pick your fighter π«Ά
πΈ DESCRIPTION πΈ
okay so the whole move3d, rotate3d, scale3d etc. class of functions? they're literally the 2D girlies' siblings but with an extra z coordinate tacked on. and the way that's actually kind of iconic is β you can use them on normal 2D objects too, if you wanna achieve other effects. no cap, they'll work. β¨
the added mode argument can be one of ROTATE_RELATIVE or ROTATE_ABSOLUTE β and ROTATE_ABSOLUTE is the default, fyi. what it does is change how the angles get interpreted:
ROTATE_ABSOLUTEβ the angles are= val(straight up set it)ROTATE_RELATIVEβ the angles are+= val(add onto what's already there)
so like, one is "this is the rotation now, periodt" and the other is "keep going from where we are". choose wisely bestie π
π¦ EXAMPLE π¦
function rotate3d_model0()
camera = null_surface(4, 4, 0, 0, 0);
view = camtag_model(camera, 0);
model = build_plane3d(-5.0, -5.0, 5.0, 5.0, -0.4, 1.0, 1.0, 0);
show_image(model);
rotate3d_model(model, 45, 45, 45, 100);
end
look at her go π camera, view, plane, show it, then rotate3d_model(model, 45, 45, 45, 100) and suddenly everything's at an angle. main character energy fr fr π₯
π SEE ALSO: π
go read those next, iykyk π§
and that's the whole page, bestie!! this lil gem lives in the 3d manual section, dated October 2026 β mwah, slay, go rotate something ππβ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms