Answer by robinking
One option is to attach such a spawn point as a child GameObject to your house. (Just use an empty gameobject as the spawnpoint.) You can move that to wherever you like near the house.Include this at...
View ArticleAnswer by robinking
I've found the problem and for those who are interested, it's because somehow one of my vertices was being given position values of 'NaN'...
View ArticleAnswer by robinking
I've discovered the culprit, it's:ground.Optimize();Is it a good idea for me to keep this line in, or can I do without it? (iPhone)
View ArticleAnswer by robinking
I've checked and using a *stored* separate array gives the much needed speed boost. For comparison I also tried Eric's method above, but because of the structure of my code, the function I call several...
View ArticleAnswer by robinking
Ben 12's answer above has provided me with a direction to head in, but I've encountered one problem I can't figure out: public class Smooth { public SM target; public Smooth() {} public void Inc(float...
View ArticleAnswer by robinking
I don't know if I'm understanding your problem correctly. This script should cap the rotation properly, i.e. if myRotation < 0, wheel angle stays at 0, if myRotation is 0-360, wheel rotation is...
View ArticleAnswer by robinking
Okay I think I understand your question better now. Try adding this script to an empty gameobject in an empty scene and running it. Now, imagine a wheel or dial whose centre is the centre of the...
View ArticleAnswer by robinking
Macfanpro (correct answer here) put me on the right track towards indexers... here is a complete code example that fully illustrates how they work. using UnityEngine; using System.Collections; public...
View ArticleAnswer by robinking
There's actually no perspective in that picture, it's a (simulated) orthographic camera. Isometric projection is a particular fixed orthographic view which would need the camera to have a euler angle Y...
View ArticleAnswer by robinking
D'oh! Sorted it myself. It was as simple as changing the settings in the GUISkin I'm using for padding and margins. And I'm using GUI.Box now instead, although I don't know if that makes a difference.
View ArticleAnswer by robinking
I don't know if this will be an end to my woes, but I managed to purchase Lion by calling the Apple tech support line and saying I'm a paid member of the Developer Program.
View ArticleAnswer by robinking
After some diagnostics, I've discovered the exact cause of the problem. A 3D array of Vector2s goes awry when built for iPhone: each Vector2 seems to use 2 array spaces - the index position for...
View Article