View Full Version : Expression Question - passing Vector components to an Expression from a Subexpression
10-08-2004, 05:17 PM
I need to define a vector in one expression, then pass one component of it to another expression. From the limited docs, i'm thinking that passing "the 3" from vectorXYZ to vectorZ should work like this:
Value: < 1, 2, 3>
What am I doing wrong? Any help is much appreciated.
10-09-2004, 02:17 AM
Can't figure it out myself, but <1, 2, 3>.z will return "3", so can you just include the full expression instead of referencing the other one?
10-09-2004, 06:05 PM
That's kind of what I wound up doing (see below)...writing a bunch of subexpressions that will be called ( like [vectorZ] for example ) by the main expressions. That takes more writing work than I'd like, but winds up working just fine. :)
Value: vmag( [vectorX], [vectorY], [vectorZ] ) ***Edited this cause I left out the brackets
Thanks Kretin! -Mike
10-10-2004, 01:10 AM
Good solution Mike :)
01-19-2006, 12:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.