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