Forum

Append Stiff Viewport (SOLVED)

27 October 2016 18:00
This is exactly what I'm looking for, for a 2d game ;)
Attach the object to the camera using a stiff vieport constraint, so the child object will preserve its orientation in the camera viewport. This constraint is used to create onscreen 2D/3D user interfaces.

append_stiff_viewport(obj, camobj, positioning)

But how do I create this object?
StiffViewportPositioning
left Number
right Number
top Number
bottom Number
distance Number
etc.
etc.

could someone provide an example?

Thanks
Mike
02 November 2016 20:56
Ah, I see. This is the API version of viewport allignment
https://www.blend4web.com/doc/en/camera.html#viewport-alignment

Used to make HUD by attaching objects to the camera. I was actually thinking I was appending the camera to a character.. not so.
 
Please register or log in to leave a reply.