Applying velocity to non rigid body object? By math?
Hello! Is there any way to simulate velocity on camera in scene? Without gravity, but with something like linear drag (air resistance), for smooth slowdown? There should be a way to do that :/ Only by...
View ArticleTrouble understanding Quaternion.identity in tutorial
In the Space Shooter - Game Controller tutorial: Right at the end of the video, it says to initialize the rotation to Quaternion.identity, which means "no rotation", and then the guy in the video...
View ArticleDisplay countdown timer in Unity: distance traveled C#
I'm new to C# and Unity. I'm making a game with a countdown timer. The timer counts the distance you've traveled so the timer is linked to the player. I'm using the following script: public class...
View ArticleBuild a WP8 DLL that has a MonoBehaviour
I was recently tasked to create a DLL from our Unity scripts for distribution on the Asset Store. I was able to build a standard DLL for everything except Windows Phone 8. I would appreciate any help...
View ArticleI want to rotate object away or towards camera around x-axis
Hi Unity people and consumers. Currently working on an controller that can grab stuff and manipulate it. I currently have gotten stuck due to a problem with my rotation function. I want it to be able...
View ArticleHundreds of Render Textures Overusing VRAM
![alt text][1] [1]: /storage/temp/21693-screen+shot+2014-02-04+at+3.23.55+pm.png I have done my best to simplify the heck out of this game, optimizing textures and mesh, but I always seem to have...
View ArticleDestroyed prefab still moving
Hello. I am doing the example Space Shooter from tutorials and using Unity 4.3.4f1. According to the tutorial, clones should disappear from hierarchy view but mine is still there, only the triangle on...
View ArticleButtons within Scroll View not able to communicate
I have some buttons within a ScrollView. And they don't seem to be able to communicate out of the view. What I have is function OnGUI () { if (GUI.Button(new Rect (0, 0, 100, 20), "1")){...
View ArticleRandom generation of Asteroids
Hello, i want to generate an Astroid field. I want to place them at random places around a coordinate with a max and min amount of asteroids or something like that. I found the instantiate command but...
View ArticleHinge Joint not Arcing
I have a hinge joint connected to an object that can move freely and has a rigidbody with default attributes (other than movement/rotation on Z is disabled). Whenever I enable a hinge joint between it...
View ArticleChange multiple gameobjects colour to create a trail
Hi I have a grid type game where the player moves a cube 1 unit at a time in a grid like fashion (think like a chess board). On the player cube, there is a collider and on the board pieces there is a...
View ArticleOnColliderExit2D doesnt seem to execute
Soo, I am making a 2D game and currently was making platforms, managed to make them and I made a script, which when the character gets on top of the platform, he becomes child of it so he moves with...
View ArticleNetwork bullet issue
i have all working, i instantiate the bullet, and then if i hit an player, he loose life etc, but, when i shoot to the ground i dead, i think that my bullet is colliding with me, there is a way to make...
View ArticleHow do I use displacement mapping in Unity to create more high fidelity terrain?
I'm creating a mountain biking game, and the mountain meshes I intend on using aren't impressive in terms of triangle count. I've looked into methods for increasing this terrain detail such that I can...
View Articlemaking boundry for sidescroller
hey all, im trying to make a simple script so if my player object hits the top of ther screen he stops moving up and just stays on screen at the top until he is moved down. and visa versa for the...
View ArticleCS0103 The name 'List' does not exist in the current context
I was coding on one computer then i switched to laptop and suddenly i have an error which i can't for the life of me figure out what is going wrong. The error is the title, using UnityEngine; using...
View ArticleAssets will not import
I am a java progamer just got into c# so i decided to use unity just yesterday i am testing stuff and to lazy to make models so i used a free asset male pack and unity cannot open the package this is...
View ArticleHow to find the closest 4 verts/corners ( along with their orientation ) of a...
Hi, In my game, the player object picks up and drops rectangular objects ( rects ). Before the player is allowed to pick up one of these rects, the rects need to have one face parallel with the x/z. If...
View ArticleA problem with an object following a player and camera?
So there is a player and a droid and a camera in the scene. The player is moved with fixed update (because it has physics) The camera is moving with lateupdate (Using transform.position of the player...
View ArticleStatic background image, camera follow player
Hi, I'm relatively new to Unity and trying to work with some 2D examples. At the moment I'm working on an infinite runner example whereby the main camera follows my player. To make the game more...
View Article