rotate3d_model(3)

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

πŸ’… 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