Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
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_ABSOLUTE  (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				   August 2026		       rotate3d_model(3)

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+15.1.quarterly>

home | help