how to use append_stiff_viewport(obj, camobj, positioning)
24 February 2016 11:36
i want use append_stiff_viewport(obj, camobj, positioning) to realization view ctrl
like Autodesk viewCube; then do this:
var mainCam = m_scs.get_active_camera();
var Cube = m_scs.get_object_by_name("Cube");
m_cons.append_stiff_viewport(Cube, mainCam, [32,0,32,0,10,0,1920,1080]);
brower console ERROR:
b4w.min.js:330 B4W ERROR: append_stiff_viewport: Wrong positioning params
how to use StiffViewportPositioning params.
Or there are other better ways to do this Like Autodesk ViewCube
thanks advance!
like Autodesk viewCube; then do this:
var mainCam = m_scs.get_active_camera();
var Cube = m_scs.get_object_by_name("Cube");
m_cons.append_stiff_viewport(Cube, mainCam, [32,0,32,0,10,0,1920,1080]);
brower console ERROR:
b4w.min.js:330 B4W ERROR: append_stiff_viewport: Wrong positioning params
how to use StiffViewportPositioning params.
Or there are other better ways to do this Like Autodesk ViewCube
thanks advance!
24 February 2016 11:52
Hello.
The positioning params should be an objects. You can read about this type in API doc. You need StiffViewportPositioning type
The positioning params should be an objects. You can read about this type in API doc. You need StiffViewportPositioning type
24 February 2016 13:48
24 February 2016 14:16