|
NAMErotate3d_model - Set the current rotation for the specified model.SYNOPSISnilrotate3d_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 ) DESCRIPTIONThe 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).EXAMPLEfunction 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)
Visit the GSP FreeBSD Man Page Interface. |