Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 11-Jan-2014 18:16:39

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,543
Website

Problem with targetting a node to the camera [solved]

how to get a plane to always face the user's camera such that the plane only rotates on its vertical axis

   let V3DgetObjectByName c3dXsession "Current camera shell" -> camshell in 
   let [1 0 1]-> axistorotate in
   let [0.0 0.0 0.0]-> naturalfacing in
   let SO3ObjectGetNodeFacingOrientation plane_node camshell naturalfacing axistorotate  -> facingrotate in
	(
	//_DLGMessageBox _channel nil "this is the name of the scene node of the plane" (SO3ObjectGetName  plane_node)  0;
	SO3ObjectSetOrientation plane_node facingrotate;
        0;
        );

Last edited by hebdemnobad (11-Jan-2014 18:52:34)

Offline

#2 11-Jan-2014 20:18:18

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,162
Website

Re: Problem with targetting a node to the camera [solved]

good smile

Online

Board footer

Powered by FluxBB