06-09-2023, 06:44 PM
(This post was last modified: 06-10-2023, 12:28 AM by rjanders0003.)
G'Day
Is it possible in tyFlow Script to modify matrix3 data directly - say eg: I wanted to add an offset to position Z but leave rest of matrix3 data in tact.
Rob
EDIT:
I think I figured it out myself - took a bit - lol
Is it possible in tyFlow Script to modify matrix3 data directly - say eg: I wanted to add an offset to position Z but leave rest of matrix3 data in tact.
Rob
EDIT:
I think I figured it out myself - took a bit - lol
Code:
// RJA - get the Matrix Data for particle 0 in the current flow
Matrix3 mtRJA = tf.GetTM(0);
// RJA - For Debug purpose Print to Lisetner the row4 data (translation)
Print(mtRJA.row4);
// RJA - Adjust the Matrix3 Data by adding a position offset
mtRJA.row4.z = mtRJA.row4.z + 1;
// RJA - Update the Matrix3 Data with new adjusted Z translation Data
tf.SetTM(0, mtRJA);