Answer by Slin
That is actually quite tricky, at least if I understand your problem correctly. After thinking about it a bit, I think that you can use the quaternions AxisAngle function. You should be able to get the...
View ArticleAnswer by Slin
I think that the GL class draws in the same moment you call one of its draw functions. As the Queue tag would define when an object is rendered, it is just ignored. I am not exactly sure if I...
View ArticleAnswer by Slin
A loop is probably more flexible and better to read as it is shorter, but other than that your code looks fine:var enemyPrefab : Transform; function Update () { if(GameObject.Find("enemyPrefab(Clone)")...
View ArticleAnswer by Slin
You could check out what the PositionFog function does:// Computes final clip space position and fog parameter inline void PositionFog( in float4 v, out float4 pos, out float fog ) { pos = mul(...
View Article