Quantcast
Channel: Latest Questions by orcinusdev
Browsing all 26 articles
Browse latest View live

transform.position sends object to wrong position

I have a really simple code where a player enters a collider (teleport) and gets moved to another position. When i look in the unity editor, its position is not what I assigned it to (it moves to some...

View Article



C# Simple turret script problem

Hello! I have the simplest Turret code which doesn't work. It fires projectiles in Z direction (?!) When player is at the positive x positin of the turret the turret shoots upwards in Z, otherwise...

View Article

Move Rigidbody frictionless over ground

Hey! Im currently working on a simple maze game where a triangle is moving over a ground and colliding with stuff (camera from top). I came up to the conclusion that I want to use gravity on this...

View Article

Use mesh collider on a lowpoly model instead of multiple boxcolliders?

Hello! I'm working on a game which targets mobile devices, currently for Iphone 4 and better. I'm currently working on a lowpoly missile which has 38 tris. I wonder if its better to use mesh collider...

View Article

Lensflare shows when Ignore Layers is set to "Nothing" but not when it is set...

When instantiating a gameobject with a lensflare into my game it does show when ignore layers is set to Nothing but not when it's set to Everything, shouldn't it be the opposite, as I ignore Everything...

View Article


Framerate affects speed of Lerp function

Hey! I have this code public IEnumerator MoveExample(Vector3 newPosition, float time) { float elapsedTime = 0; while(elapsedTime

View Article

Divide screen into two touch buttons

Hey! I'm trying to make a object rotate based on if the user touches the left side of the screen or the right side of the screen. If the user presses the left side of the screen before releasing the...

View Article

Shuriken Particle System + Diffrent Time.timeScale values

Hey! I got some wierd results with my shuriken particle system. To reproduce the problem: 1. Create a shuriken particle system 2. Set startspeed and Limitvelocity over lifetime (so it stops at a...

View Article


Addforce more powerfull in the air than on ground

Hello! I currently working on some rocket cars and I have come up to an annoying problem. I have cars and ground with a physical material with **0** friction (the car just floats around when adding...

View Article


Invert microphone audiowaves

Hello guys! I'm trying to invert the audio waves I get from my microphone. In other words; multiplying the amplitude with -1. However, how can I get the amplitude property of an audio, and do this? Is...

View Article

Lightmap and texture baked into one image

Hey! I'm new into working with lightmaps and textures. I'm working on a mobile game and want good performance. I use Blender for baking the lightmaps (as I have Unity Free). I realized that you could...

View Article

Get vertices a material is assigned to

Hello! As the title states I am after a solution on how i can get all the vertices that a material is assigned to. This because I want to be able to change the vertex colors just for that part. The...

View Article

Unity 5 standard shader support for vertex colors?

Hello! I want to bake light with enlighten but I find that I only can do it with the standard shader that doesn't support vertex color input. Is there any workaround for this? Is this supported in a...

View Article


transform.position sends object to wrong position

I have a really simple code where a player enters a collider (teleport) and gets moved to another position. When i look in the unity editor, its position is not what I assigned it to (it moves to some...

View Article

C# Simple turret script problem

Hello! I have the simplest Turret code which doesn't work. It fires projectiles in Z direction (?!) When player is at the positive x positin of the turret the turret shoots upwards in Z, otherwise...

View Article


Move Rigidbody frictionless over ground

Hey! Im currently working on a simple maze game where a triangle is moving over a ground and colliding with stuff (camera from top). I came up to the conclusion that I want to use gravity on this...

View Article

Use mesh collider on a lowpoly model instead of multiple boxcolliders?

Hello! I'm working on a game which targets mobile devices, currently for Iphone 4 and better. I'm currently working on a lowpoly missile which has 38 tris. I wonder if its better to use mesh collider...

View Article


Lensflare shows when Ignore Layers is set to "Nothing" but not when it is set...

When instantiating a gameobject with a lensflare into my game it does show when ignore layers is set to Nothing but not when it's set to Everything, shouldn't it be the opposite, as I ignore Everything...

View Article

Framerate affects speed of Lerp function

Hey! I have this code public IEnumerator MoveExample(Vector3 newPosition, float time) { float elapsedTime = 0; while(elapsedTime

View Article

Divide screen into two touch buttons

Hey! I'm trying to make a object rotate based on if the user touches the left side of the screen or the right side of the screen. If the user presses the left side of the screen before releasing the...

View Article
Browsing all 26 articles
Browse latest View live




Latest Images