Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

[SOLVED] ofParameter update vector coordinates

$
0
0

Hello,

i have an ofVec3f as an ofParameter and i don't know how to update just one coordinate value.

for example i have :

ofParameter<ofVec3f> position;

I am able to get separate values using

float distance = position.get().z;

But how can i just set the z coordinate ?

thanks a lot


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>