found in visual c# scripting. :/
2 Answers
2It is basicly an array of 3(Vector 3) and 4(Vector 4) float values. Vector3 is usually used in 3d space for X,Y and Z values. Vector4 is usually used in shaders for R(ed),G(reen),B(lue),A(lpha) values.
Hope it helps ;)
There’s a good tutorial video about Vector Maths here.
+1 Yes, the video is really great (and a bit funny), however the last example (cross product) is badly choosen. A tank gun-turret is usually made up of different components. Rotating it around the calculated crossproduct, if the new target is higher or lower, would tilt the turret strangely. You usually rotate the turret-base around the tanks up vector and the barrel around the turrets right vector. Other than that really well done
– Bunny83
Great explination, PaxNemesis!!! :)
– zmar0519thanks, it helps my understanding! :)
– anon51553810DanielDude: colors are number values from 0-255 or 0-1 and in combination creates most colors we can see. As there are 3 primary colors this can be added to an array: Vector3(0.5f, 0, 1.0f) (Red, Green, Blue) <- This represent Purple.
– PaxNemesisthanks,Great explination
– Prd_Animator