Collision Detection between instances of a prefab
I am current trying to implement some simple projectiles (fireballs) in my game in Unity. As it currently stands I am creating a rigidbody instance of my fireball prefab before applying a force to it...
View Articleneed help for Displaying Values?
Hi All, In my project i got values every time and that values i want to display like table. For suppose, If we take pendulum experiment the experiment results i want to display every time by row by...
View ArticleOn iOS .. actually go to the GameCenter app (or any other app)?
Sort of an odd question, of course in a game it is very easy to simply quit the game, and launch Safari ... Application.OpenURL("http://www.eatMoreMeat.com"); Can you quit the game, and launch the...
View ArticleGame meshes and objects won't read
I have put a game character on the scene and it's animation and the meshes are not seen as an object Like from this error NullReferenceException: Object reference not set to an instance of an object...
View ArticleMove Character on objects
Hi Guys, I have 3 Cubes (Obj_Cube1, Obj_Cube2 and Obj_Cube3), my character "Obj_Char" stands on Obj_Cube2, and if I swipe with my finger to the left on the screen, Obj_Char goes to Obj_Cube1 and...
View Articleassets/gamer/scripts/corpo.js(44,1):BCE0044: expecting found".
var velocidadeLado : float; var velocidadeRotacao: float; function Start () { } function Update () { velocidadeCima = 30*Time.deltaTime; velocidadeFrente = 8*Time.deltaTime; velocidadeLado =...
View ArticleOdd collision behaviour with If/while statement
*//That boring intro* Hi I have a bit of a problem with a script, I have a cannon that fires 20 bullets per second, for a second and then stops. I've tested this with different amounts of rounds per...
View ArticleAny simpler way of writing this? — Changing the alpha of a named color value?
var newCol = myObject.renderer.material.GetColor("_TintColor"); newCol.a = 0; myObject.renderer.material.SetColor("_TintColor", newCol); It's quite a lot of code just to change the alpha value, was...
View ArticleRotate the wheel collider when car flip
Hi, I know the whell collider must not rotate with the weels but i want to make a "car" that can flip 180° and continue to drive. For the moment when the car flip, wheel collider no more look at the...
View ArticleUnityScript EROR!
Internal compiler error. See the console log for more information. Internal compiler error. See the console log for more information. output was:BCE0011: An error occurred during the execution of the...
View ArticleAI Aircraft/Spacecraft yaw and pitch help
I'm guessing this question has been asked to death, but I'm more looking for how to implement this into my AI code, since right now all they do it just rotate on the y axis and just spin around the...
View ArticleHow will display values like table?
Hi All, In my code i am storing values like an array. one.Add(StripeValue.ToString()+Pendulum2.Timeperiod.ToString()+Pendulum2.count.ToString()); Displaying is some what problem i am facing can u...
View ArticlePower Up Script Problem!
I am making a simple jumping game and I have made a sphere which is going to be my power up. I want it so when I collide with the sphere, it sets the Time.timeScale to 0.5 for only **10 seconds**. Then...
View ArticleDeleted assets not going to recycle bin
I just updated to 4.1.2f1 and deleted some assets from the project window, with a view to restoring them later. But afterwards found that they were not in the recycle bin. Is there any way to recover...
View ArticlePrompting dialogue box for input in Editor?
I'm trying to create a script for the Unity Editor that creates an empty prefab. I'm using c#. How can I launch a dialogue or prompt box asking user to input the name of the prefab to be created?
View ArticleCreating a custom script that extends other scripts in Editor
I have a base class called `BaseObject.cs`. I'm trying to create a script for the Unity editor (Editor script) such that it will automatically create a new c# script called "`TestScript.cs`" of type...
View ArticleGlow in Unity
This question has been asked a lot, but there doesn't seem to be a particularly definitive answers. Is there really no good way to have glowing dynamic (not light baked with self illuminated) objects...
View Articlearraylist stroing/passing values?
Hi All, In update method i wrote code like this. else { startAngle = 270; endAngle = 270; threevalues.Add(GUIMenu.StripeValue.ToString()+Timeperiod.ToString()+count.ToString()); } How will i store/pass...
View ArticleHow do I build an uncompressed asset bundle with no scenes?
I would like to build asset bundles for each localized version of my game. I will include the fonts and audio files as well as all the localized strings in each bundle. I have managed to figure out how...
View ArticleAI control C#
Hello. I have this APC with fully working suspension, realistic physics and a turret which shoots. So How would I get the AI to use this code? Do I have to make whole new code or is there a way to get...
View Article