<div dir="ltr">Hi Rodrigo,<div><br></div><div>You can use the OSG's meta object system i,e</div><div><br></div><div>   osg::Vec3d direction(...);</div><div>   node->setUseValue("direction", direction);</div><div><br></div><div><br></div><div>   if (node->getUseValue("direction", direction))</div><div>   {</div><div>       // do something with direction</div><div>   }</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 15 May 2020 at 18:16, OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm creating objects that must fall by gravity. So I need to assign a Vec3d, representing speed, to each Node. Is there a proper way to do it? Maybe some variable inside the Node, Geode, ShapeDrawable, etc, or some function for this kind of variable assignment? Or must I create an array outside the OSG variables?<br></div><div><br></div><div>Thanks,</div><div>Rodrigo.<br></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com" target="_blank">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/2a51f5b0-9f51-45b5-acf5-17adc57f6b34%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/2a51f5b0-9f51-45b5-acf5-17adc57f6b34%40googlegroups.com</a>.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>