Problem with Unity autopressing W/Up and A/Left
When I run a scene in my project it automatically presses the unity forward and left movement buttons (W/Up Arrow and A/Left Arrow) even though I am not pressing them down. I have nothing on my PC that...
View ArticleHow to find an object directly above another w/out Raycast?
I am trying to make an object that applies a little air blast to anything that gets above it. I am a little stuck here. The air blaster (aka Jet) should be able to find out if something is directly...
View ArticleInput.GetTouch
Hi everyone, I got a simple question how can I make this touch script move in only one direction. For instance I want to move a block by touching my screen and sliding up only, once that happens the...
View Articlepublic not showing up
Anybody has an idea why my public not showing up inspector.My script: using UnityEngine; using System.Collections; using System.Collections.Generic; public class WeaponManager : MonoBehaviour { public...
View ArticleHow to apply a force in a specific direction in 2D ?
Hi ! I'm making a 2D game in which the player can jump on bumpers that will propel him along the up axis of the bumper. My bumper is a mushroom and must be rotated at -90 degrees on the Z axis, then,...
View ArticleTrying to make a bounce platform that tosses the player.
I want to make a bounce platform. I tried to figure it out myself but no luck. I got it to work somewhat, but for some reason it would only work if I entered the trigger from the left side. So after...
View Articleusing Raycast.hit function my car gets up and doesnt get down ?
hai everyone...iam new to unity...am trying to move a car in a terrain surface(mountain).using raycast.hit function i get my car up when am hitting in the mountain surface..but my car doesnt gets...
View ArticleCollision based bug 3d
Hi i have been trying to fix a bug for a while, basically i have a series of platforms being generated and when i hit the middle of two platforms i go directly up instead of continuing right.
View ArticleHow to get global up vector?
I have a character who needs to jump, but it also can change rotation a bit (lean forward/backwards) which prevents it from jumping properly. Here's my jump code: if ((isGrounded)&&...
View ArticleWhen I use rigidbody.Moveposition, the object doesn't move accurately.
I've been using rigidbody.Moveposition for one of the objects in my game. It moves up for a set number of seconds, then moves back down for the same number of seconds, at the same speed. However, the...
View ArticleWhy isn't my Gui showing up at all?
I am following a tutorial, and the guy has his GUI showing up but mine is not showing up when I start the game. public void OnGui() { if (!connected) { connectionIP = GUILayout.TextField(connectionIP);...
View ArticleDifference between Vector.up and transform.up
Basically my question title says everything related to my question. What is the difference between Vector.up and transform.up? If I have asked silly question then forgive me but at present I can't able...
View Articlec# help with rotate and rotatearound
Hello Q&A board, I have built a mini-solar system. I have some planets orbiting the sun and cameras watching it. I have hierarchies setup to accommodate child-parent relationships. When I watch the...
View ArticleHow do I tilt my Spaceship and make it go up and down?
Hello, I want my spaceship to tilt left and right whenever I 'sidestep' with it. But I'm not sure how to make that work :/ I would also like to make my spaceship go straight up and down, when pressing...
View ArticleUnity Game object with stop move up and down position in meta world Camera
I have used 3d Game Object in my Scene, and i have used third person camera,when i place my 3d game object in particular position, When i move the camera,the object position should be changed and the...
View ArticleAbout power-ups...
Okay, so... I've been trying to make a game where you are a comet. It's a platformer that doesn't use jumping. But I seem to be having trouble regarding the programing of power-ups. I need two...
View ArticleRigidbody2d Moving up and Down but not left and right
Hello guys, Fresh unity user here, My RigidBody2D (pong game) is correctly moving up and down, but not left and right. The code seems simple, but i can't understand why it's not moving. I have set the...
View ArticleHow do i make up and down button script for Mobile in Unity 5.3.2
Im making a 2d game that only moves up and down for Android but cant seem to find a script for simple up and down button movement. i watched tons if tutorials on how to move with mobile but none...
View ArticleWhen I Re-Spawn in my game, I can't look up or down. How can fix this?
How can I fix it to let me look up and down? This is a new bug, I used to be able to respawn without any issues. I'm using the FPS controller, and when I re-spawn and go into my settings, y sensitive...
View ArticleSetting up animator
Okay, so... I solved my last question and i am about to accept the answer. Anyway, i have some nice animations for my character, but i am having a problem. As i said before, i am a horrible animator,...
View ArticleChange editor camera's Up
I'm going to work on a topdown 2D game. Since you can't change Unity's 2D plane from XY, Up/Down from this game's perspective is going to be the Z axis. However, the camera in the editor still responds...
View ArticleHow to make object moving forward while looping up and down
Hi, guy! I'm new to Unity. I've created this script to make object looping up and down. How can I move the object to the -x axis. Something like a bird tries to avoid a beam that moves up, down and...
View ArticleHow can i get a object fall and go up random?
I have a game where the enemy needs to go down and up and it needs to be generated randomly. How can i do that ?
View ArticleHow to access trackpad or DPAD input controls in unity application?
In my project I made an unity android application support for ODG glasses R7. There are two modes for taking input controls in ODG glasses , one is cursor mode and other is selector mode. In selector...
View ArticleGameObject automatically moves up when upgrade is purchased.
Hello, I have a list of 4 gameobjects. They are all upgrades, so for when I click the first one, the gameobject is destroyed, great, but I want the rest of the three upgrades to automatically move up...
View ArticleHow can i move a game object up and down so it acts like a obstacle for my...
the object is a cube which has to go up and come down acting like a obstacle which requires timing to complete THANKS FOR YOUR HELP!!!!
View Articlehi guys i have a problem with my player(Roll A Ball Game) on android, my...
using UnityEngine; using System.Collections; [RequireComponent(typeof(Rigidbody))] public class ForceFromAccelerometer : MonoBehaviour { // gravity constant public float g=9.8f; void FixedUpdate() { //...
View ArticleTransform.up doesnt give me it´s local up position
When I write this: Debug.DrawLine(firstPos.position, -firstPos.up * 5, Color.red, 1); It doesn´t go to the actual up position from the game object. It goes to the origin´s up position. How do I get the...
View ArticleLookAt whilst traversing a sphere
Hi, I have a situation where I have an object that is on a sphere. Imagine the red dot is the object, and the green dot is where the object is facing. ![alt text][1] [1]: /storage/temp/158407-diag1.jpg...
View ArticleVector3.forward returns nowhere, Vector3.back returns everywhere.
I have no idea why or how, the situation isn't that complicated, and the title sums it up perfectly. Vector3.up/down work fine, same with left/right. I'm using a blender model and I heard that tends to...
View Article