OnTriggerEnter - Objects pass through each other?
I have 6 primitive cubes stretched out to form the "walls" of a large box. Inside the box, I spawn some number of primitive spheres with random velocities. I have colliders on the cubes ("walls") and...
View ArticleRules of Thumb for Polygon Counts?
I'm asking almost specifically for the unity3d asset store. I can't find this information in the guidelines. I've never created art for games in particular. So, I'm wondering if there are any ballpark...
View ArticleBest way/place to implement GUI? (scenes/levels/layers? - opinions wanted)
So, I'm going to have 2 types of GUIs in my project. One is a constant set of tools/buttons/whathaveyou that is always "on".Two, I'd also like to have a "settings" menu that the user can open up and...
View ArticleFix ugly extrusions (Quaternions)?
I'm using the extrusion routine in the Unity3D procedural examples. I have a path of points along which I am extruding a "tube" based on a circle profile.I get these ugly "turnovers" (pictures below)...
View ArticleCompute New Surface from Old Surface?
I've spent about a week face-rolling my keyboard over this one, so it's time to ask for some fresh ideas.This is the problem to solve: Compute the surface indicated with the blue curve.The overlapping...
View Article65,000 vertices or 65,000 triangles? Disambiguation please.
I have a couple questions about this:Is it vertices or triangles? I've seen references that state it's vertices NOT triangles. However, unity3D itself seems to think it's "triangles".Where does this...
View ArticleStore mesh vertices in new Vector3[]?
hmmm....Not quite sure why this is throwing a NullReferenceException var mesh : Mesh = GetComponent(MeshFilter).mesh; var vertices : Vector3[] = mesh.vertices; var normals : Vector3[] = mesh.normals;...
View ArticleCalculate distance between two surfaces?
hmmm... seems like an obvious question that I can't seem to find answered.Anyhow,I'm trying to figure out how to calculate the distance between 2 surfaces, not between 2 objects. I suppose the distance...
View ArticleRoll over a surface keeping constant contact?
In the picture below, I would like to be able to "roll" the small purple ball all over the surface of the larger golden ball.In the simplest case of smooth spheres, I could simply lock both of them in...
View ArticleIntermingled Read and Render?
Here, we're reading a text file for coordinate data. We'll want to generate meshes and render them. (or use prefabs)Is there a way to instantiate and render as we read along? Rather than read...
View ArticleHow/Where to learn about mesh operations? (help)
Hello,This has been a long running problematic area for me. In various spots in my coding I've wanted to "merge" meshes (at runtime). There's a whole bunch of scripts floating about that apparently do...
View ArticleWhy is reading some text files with JS so darn slow?! (title changed to...
Here's the relevant code:var textAsset : TextAsset; var lineCounter = 0; function Start() { readHugeFile(); } function readHugeFile() { var startTimer = Time.realtimeSinceStartup; if (textAsset ==...
View ArticleWhere to store a bunch of pre-set variables and constants? (noob question)
Hi,I've got about 103 gazillion initialized variables, hashes, arrays and constants along with descriptive notes at the top of my "main" script. Is there something akin to a .h file I can put these...
View ArticleIdentify and Reference Intersection of Graphics Objects?
I'm wondering if there might be a way to do this readily.Let's say I have a collection of meshes, as shown, and they intersect one another. Is there a way to "get" the points along the intersections,...
View ArticleSimple Multidimensional Associative Array question.
I'm creating and indexing a multidimensional associative array like so:arrayOfFruits["apples"] = {} arrayOfFruits["apples"]["oranges"] = {};I make some assignments later...
View ArticleIEnumerator reset?
Is there a way to reset an IEnumerator in JS?thanksEDIT:In particular, I'm using the functions here:http://www.unifycommunity.com/wiki/index.php?title=InterpolateI'm doing this:var points =...
View ArticleArrayLists or Tags?
Generally speaking, is it quicker to get objects via their tags or from an array (ArrayList)?Example:var apples = GetComponent("FruitBasket").apples; for (var a : GameObject in apples) { //eat apple or...
View ArticleOnTriggerEnter - Objects pass through each other?
I have 6 primitive cubes stretched out to form the "walls" of a large box. Inside the box, I spawn some number of primitive spheres with random velocities. I have colliders on the cubes ("walls") and...
View ArticleRules of Thumb for Polygon Counts?
I'm asking almost specifically for the unity3d asset store. I can't find this information in the guidelines. I've never created art for games in particular. So, I'm wondering if there are any ballpark...
View ArticleBest way/place to implement GUI? (scenes/levels/layers? - opinions wanted)
So, I'm going to have 2 types of GUIs in my project. One is a constant set of tools/buttons/whathaveyou that is always "on".Two, I'd also like to have a "settings" menu that the user can open up and...
View Article