Tagged Questions

0
votes
0answers
32 views

How to Make AI Car

can ne boy tell me how to make an AI car follow a Waypoint Path.. I have been roaming aroung and found a tutorial link: http://www.gotow.net/andrew/blog/?page_id=78 But the thing …
0
votes
1answer
12 views

I am having a problem with momentum of an object after releasing a touch from the iPhone.

I am at an impasse. I can touch an object with my finger and it will follow the movement. What I then want is for the object to continue in a decaying arch once I have picked up …
0
votes
1answer
34 views

Stopping the elevator

This is my code for the movement of an elevator. I need to create a GUI button to stop the movement at any time. How can I do that? var elevator : GameObject; var trigger : Game …
1
vote
1answer
25 views

If statment to check if player is within collider

I am creating a door that opens when the player enters the Collider box. But how can i check to see if the player has left the collider box. So the door dosent close while the pla …
0
votes
1answer
22 views

Is it possible to open the maps-application while running an unity-iphone app?

Hi, i would like to know if its possible to open the maps-application when clicking a button within my unity-iphone app? It would be great to click a button and then the maps ap …
1
vote
2answers
29 views

Calculate distance between two objects

How can i calculate the distance between two objects in unity using javascript?
0
votes
1answer
31 views

Converting Javascript to C# - Can´t modify transform.localPosition

Hi, i have to rewrite a javascript to c# and i´m new to c#. It´s about the following code line: transform.localPosition.z += (tmpDelta *tmpSpeed); If i write for c# exactly li …
0
votes
1answer
38 views

How Click a Button to fly or beam to another Place. Can you Help me?

Can I create a button that you can fly to another Place or beam? So come in one click at a different position in the 3D game can be? Thanks
1
vote
2answers
16 views

Can I modify grass or details on the terrain at runtime?

Can i have opportunity to remove a type of grasslayer via scrpt? for example when my cube collide on a selected type of grass,the grass die.Is it possible?
1
vote
3answers
42 views

Situational GUI popup question.

I'm having trouble with a situational GUI popup. For example, when the game loads for the first time, I want to have a GUI pop up that starts the story out. You know, tells you wha …
1
vote
2answers
36 views

Modify Rigidbody Speed

How would I modify my rigidbody's speed? I have a tank using WheelColliders that can chug along towards you. The problem is, it can't climb hills. I have a script to fix that. It s …
0
votes
2answers
57 views

How to call a function from another script - getting error “Object reference not set to an instance of an object”

Im having a problem calling a function from another script. Ive looked around and came up with THIS and THIS, but I cant to get it to work. I want to call the function AddScore() …
1
vote
1answer
22 views

How to set starting order of scripts?

Let's say I have three scripts, each attached to three separate game objects. In one script I am loading up some data from text files, and that data needs to be available to the o …
1
vote
1answer
26 views

Coding in Visual C# Express - Using C# and Javascript namespace problem

Hi, i´ve tested coding in MS Visual C# Express Edition. Now i´ve opened an old project where i´m using javascript and c# script-files. In my "MainController.cs" i´m using somethi …
1
vote
1answer
25 views

How do I convert Component[] array into String[] with GetComponentsInChildren?

Hello, I am trying to dynamically define a GUI toolbar using GetComponentsInChildren();. Basically, the number of objects that have a Waypoint script attached will appear in a gui …

1 2 3 4 5 34 next
15 30 50 per page