@Mitch
Really nice job !!
@camsinny
+1 for your idea !
@skybh
Sure you can already split/decompose your variables...they call it "swizzling", so you can extract any values from your matrices.
Here's an example :
You can now use the system parameters to set your car variables...
Talking about those, was wondering where to find the fuel consumption variable in system.htm file (in dara/dump folder).
Really nice job !!
@camsinny
+1 for your idea !
@skybh
Sure you can already split/decompose your variables...they call it "swizzling", so you can extract any values from your matrices.
Here's an example :
Code:
int $arrayA[2] = int[2]{0,1}
int $arrayB[2] = $arrayA[1][0]
// result: $arrayB[0] equals 1 and $arrayB[1] equals 0
// The order has changed compared to $arrayA !
You can also use xyzw, rgba or m00m01m02m03m10m11..m33 etc to address array members, if you use a dot ( . ).
A couple of examples:
int $arrayA[2] = int[2]{0,1}
int $arrayB[2] = $arrayA.yx
// result: $arrayB[0] equals 1 and $arrayB[1] equals 0
// The order has changed compared to $arrayA !
// Note the dot
Or
int $arrayA[3] = int[3]{0,1,2}
int $arrayB[2] = ( $arrayA+ int[3]{0,10,20} ).zy
// result: $arrayB[0] equals 22 and $arrayB[1] equals 11
Or
int $cowSays[3] = int[3]{0,1,2}
int $arrayB[2] = $cowSays.m00
// result: $arrayB[0] equals 0 and $arrayB[1] equals 0
Or
int $arrayA[4] = int[4]{0,1,2,3}
int $arrayB[3] = $cowSays.yyw
// $arrayB[0] equals 1
// $arrayB[1] equals 1
// $arrayB[2] equals 3
You can now use the system parameters to set your car variables...
Talking about those, was wondering where to find the fuel consumption variable in system.htm file (in dara/dump folder).