Quantcast
Channel: Latest Questions by TheJayyBe
Browsing latest articles
Browse All 26 View Live
↧

Error with an Array

I getting an error in this code: Controle.arrayOfSelectedCordinates=new array(majorY-minorY*majorX-minorX); for(i=0;i

View Article


Runtime error

Every time I try to open my Unity I got this problem, it was working normally some weeks ago, but now I am with this problem: ![alt text][1] http://img832.imageshack.us/img832/4651/runtime.jpg [1]:...

View Article


Transform.rotation problems

**H**ello. I can't insert GameObjects atached to an script of other GameObjects with the correct rotation: The structure of whole thing is: An script atached to GameObjects 'parede'(wall), inside this...

View Article

ScreenToWorldPoint returning weird value.

Hi, I am trying to print the clicked point in global point. But it always returning the same value, no matter where I click: X: 5.828779, Y: 0. I don't have idea what to try. I need this values to do...

View Article

Access txt file in Unity the is in LAN

Hi, I am trying to do a test in my computers, and I am trying to use an text file in some of the computers. There is some way to access it? I am using this code: FileInfo theSourceFile = new FileInfo...

View Article


Problem colliding with walls

I added a game object to the scene but it doesn't physic collide with walls. I think everything is fine, collider and rigid body. Can somebody help? Video linked....

View Article

Trying to obtain sine/cosine by angles giving me imprecise values

From the code: double senoDoAngulo=Mathf.Asin((30 * Mathf.PI) / 180); print ("Angle Sin: "+senoDoAngulo); I obtain as answer: Cos Do Angle Sin: 0.551069617271423, not 0.5 as should it be, someone knows...

View Article

I can't find cossine.

It's working well for Sine but not Cossine: print ("Sin "+Mathf.Sin(89 * Mathf.PI / 180)); print ("Cossine"+Mathf.Cos(89 * Mathf.PI / 180)); print ("Sin "+Mathf.Sin(90 * Mathf.PI / 180)); print...

View Article


Monodevelop - contract and expand functions -

I used to see in the previous versions, if I remember, that there was the option to contract and expand functions in the IDE (Show up code inside and hide to facilitate the visualization) , I am not...

View Article


What is color and what is material (in the context of gameobject)?

Hi, I am a bit confused, I found by script how to add an material to an GameObject, material is texture right? If I change GameObject or Texture, I don't know how it works, I create an colored...

View Article

How to get exactly position of mouse in a gameObject when it's over it?

I want the exactly position of the mousein World Space when it's over a GameObject, not the position of the GameObject center, but the Vector3 of the point that the mouse touches the GameObject in the...

View Article

Event when mouse pass through invisible area

I want to make an event when mouse pass some invisible square area for example through points (x1,z1),(x2,z2),(x3,z3),(x4,z4) in a specific Y height, what's the best solution? Thanks.

View Article

Resources load to materials, how to?

Hello, I think is a simple question, but I don't know nothing about it: I have an created material in my materials folder, I just want to apply it to the GameObject by script. I am trying...

View Article

Browsing latest articles
Browse All 26 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>