GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
rotate3d_model(3) Arcan Lua API rotate3d_model(3)

rotate3d_model - Set the current rotation for the specified model.

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 )

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).

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

orient3d_model(3) move3d_model(3)

June 2022 3d

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.