- Home /
What is Vector3, Vector4, etc.?
found in visual c# scripting. :/
Answer by PaxNemesis · Apr 22, 2011 at 12:38 PM
It 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 ;)
$$anonymous$$Dude: 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.
Answer by emalb · Dec 16, 2013 at 02:45 PM
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
Your answer
Follow this Question
Related Questions
need particle help 1 Answer
How to flip the card(in guiTexture) 2 Answers
What is setter and getters??,What is setter and getters 3 Answers
Random trivia question 1 Answer
Script error about the semicolon. 1 Answer