Quantcast
Channel: Answers by "ozturkcompany"
Browsing latest articles
Browse All 24 View Live

Answer by ozturkcompany

You cannot add rigid body to camera that is why it rorates sensesly.Instead create a new Game object and attach a box collider to it then make the camera a parent of that game object. Is this what you...

View Article



Answer by ozturkcompany

Since you set your phase to TouchPhase.Began it will of course will do the job just for a frame because, you know, that phase only happens once for all touches on the screen unless you release your...

View Article

Answer by ozturkcompany

The answers is the following; var min : Vector2; var max : Vector2; var distanceInPixels : float; var target : Transform; function Start () { min =...

View Article

Answer by ozturkcompany

Hello again. Thank you very much for your answers. I understand the difference now. I just want to ask one more thing to clear any question in my mind. Which way at the bottom is the best way of...

View Article

Answer by ozturkcompany

I dont find oncollision functions accurate myself. So instead use collider.bounds.Intersacts hope i wrote it correct from my mind. This is much more accurate.

View Article


Answer by ozturkcompany

I might have been understood your question. OK, lets split out the screen to 2 parts vertically. I assume that you know how to use Input.touches array. You need to check the phase of your touch first...

View Article

Answer by ozturkcompany

Most of the time it won't work because the value of time won't be the exact value that you defined in your variables. It is mostly likely that you could get a result like this; time = 35.00000123 and...

View Article

Answer by ozturkcompany

I do think its not possible but i suggest you looking at how Time.deltaTime increase by time. Create a variable and set it to something like; private var a : float = 0; function Update() { a +=...

View Article


Answer by ozturkcompany

It is pretty straightforward. For instance; var Earth : GameObject; private var Speed : float = 5; function Update() { Earth.transform.position = Vector3.MoveTowards(Earth.transform.position,...

View Article


Answer by ozturkcompany

Hello, Try this; #pragma strict private var i : float = 0; private var j : float = 0; function Update () { j += 0.01;//Makes "i" value decrease and increase 0.01 each frame, you can change it to any...

View Article

Answer by ozturkcompany

Do both of the devices have the exact same screen width? If not, it is expected. See if this was what you were missing for. Cheers.

View Article

Answer by ozturkcompany

Hello, i have managed to do what do you want with an one different thing, it is not an anykeydown, it is anykey. If i use anykey it works but if i use anykeydown it doesn't work, i have no idea about...

View Article
Browsing latest articles
Browse All 24 View Live




Latest Images