MADjestic Posted October 29, 2006 Share Posted October 29, 2006 Hi there, UT_Vector3 *chAttr; chAttr = (UT_Vector3 *)ppt->getAttribData(vector_attr_index); Is it possible to point to [0] ('x' or other arbitrary) component of a vector(vector_attr_index) with chAttr? Thanks. on the second thought - *chAttr[0] is gonna be my X component, right? Unless maybe UT_Vector3 needs different syntax... must check that. Quote Link to comment Share on other sites More sharing options...
rjpieke Posted October 30, 2006 Share Posted October 30, 2006 Is it possible to point to [0] ('x' or other arbitrary) component of a vector(vector_attr_index) with chAttr? You should be able to use either the overloaded [] operator, or calls to x(), y(), z() to get the individual components of a UT_Vector3 Cheers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.