Quantcast
Channel: Questions in topic: "diagonal"
Browsing all 141 articles
Browse latest View live

Xbox 360 controller strafing problems

Hey all,I am working on getting an Xbox 360 controller working on for my FPS game. I was able to get it to work, button press and looking with the right thumb. The problem I ham having is with the left...

View Article



Shooting problem - bullet shoots diagonally when facing forward

I'm trying to create a simple shooting script and it's been succesfull, except when I'm facing forward he shoots diagonally to the right.It is a third person action game. Can someone help solve this?...

View Article

Angled Shot Projectile

Currently, when I start up the game, the projectile works fine:var meteor1 = Instantiate(meteor1Prefab, GameObject.Find("meteorSpawnPoint").transform.position, transform.rotation); yield...

View Article

How to forbid an NPC to move diagonally using Character Controller?

My game doesn't allow human players to move diagonally when played by 2 players. I started implementing the AI for when its only one player playing and so I need the computer to control the other...

View Article

Raycast help.....

Hi,I was wondering how or if you can cast a diagonal ray in unity. see in my game one of the players weapons is a shotgun and i wanted to cast 3 rays from the player eg. one going straight forward and...

View Article


Character moves diagonally backwards while moving side to side on slopes

Hi, i seem to be having a problem with moving a simple character left to right while on a slope. The character (A box at the moment) is a cube with a rigidbody as i'm wanting to use physics.The...

View Article

How to move rigidbody Diagonal with movePosition

var player :Transform; var speed = 10; private var direction = Vector3(0,0,0); private var grounded = 0; function Update () { walking = speed * Time.deltaTime; if(Input.GetKey("w"))...

View Article

Problem with diagonal movement + animations

Hey guys, I'm starting to animate my character for my school project and I have a small problem, I have my animator, handling all of our characters animations based on how far you push the left...

View Article


Detect diagonal movement?

Hey everybody. I'm hoping somebody can point me in the right direction with this. I'm trying to get the default iOS 2D Sidescroller script to detect pushing down and right on the left controller. Even...

View Article


Need help with diagonal movement of a projectile

I don't really understand how to implement 2D diagonal movement of a projectile (a gameobject with a rigidbody attached). I'm trying to use velocity but the projectile is just sitting there once fired....

View Article

Player moves diagonally even when not telling him to

Hello there. I'm working on a simple game, sort of a top-down shooter a la Robotron or Asteroids. I have some code that I adapted from another project where I was following a tutorial series, 3dBuzz's...

View Article

2d movement to a diagonal destination?

I'm trying to figure out how to get a 2d image or box to travel gradually from point A to point B. Point B's Y coordinate being different from point A causing the travel to be diagonal. // Simple...

View Article

Translate Object In Diagonal Direction 2D

Hello Everyone.. I am developing 2d game.. In my scene i have plane direction is x(horizontal) - y(vertical). I am generating object and randomly moving them left and right in x direction.. Script for...

View Article


Choppy Diagonal Movement

Hey guys/gals! New to these parts and I have ran into an issue, I did some poking around and took care of the issue with Diagonal movement speed, but mine seems to be choppy, so I'm unsure if it's my...

View Article

Diagonal moving is faster .Help in solving a bug!

So i wrote script that moves and rotates my ship,everything works but when moving diagonal its moving faster.Thanks. if(movingUp == true) { transform.position = new...

View Article


Disable diagonal movement on 2D character controller

Hey, I am trying to disable diagonal movement in a really simple 2D character controller. I have been trying all sorts of things with no real luck at all. Basically, when two movement keys (i.e. "w"...

View Article

How to prevent diagonal movement on 2d-rigidbody script?

Hello! I have this script, attached to a simple cube player, and it is working well, detecting collision and objects (thanks to rigid body). Problem is that i cannot manage to let him move "just" one...

View Article


Diagonal Movement

Hello guys, I'm with one doubt, related to the diagonal movement, I've searched for questions like this, but the diagonal script movement is already made, so as a beginner I have a doubt about how can...

View Article

How convert to camera FOV from diagonal FOV?

Hey all. I need to set the camera's FOV to a certain value, but that value is given to me as the 'diagonal FOV'. And Unity's cameras FOV is 'vertical FOV'. So I need to do this conversion. I realize it...

View Article

How to Make a Diagonal Collison

I have this simple platformer, but if you approach a platform perfectly diagonally, you don't collide and go straight through it. I'm not sure how to code a diagonal ray detector and any help would be...

View Article
Browsing all 141 articles
Browse latest View live




Latest Images