FreeBSD Manual Pages
rotate3d_model(3) Arcan Lua API rotate3d_model(3) NAME rotate3d_model - Set the current rotation for the specified model. 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 ) DESCRIPTION The move3d, rotate3d, scale3d etc. class functions are similar to their 2D counterparts, but takes an additional z coordinate. These could, in fact, be used on normal 2D objects to achieve other effects as well. The added mode argument can be one of ROTATE_RELATIVE or ROTATE_AB- SOLUTE (default) which affects the interpretation of the angles (= val or += val). 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 SEE ALSO: orient3d_model(3) move3d_model(3) 3d April 2025 rotate3d_model(3)
NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | SEE ALSO:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=rotate3d_model&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>