Quantcast
Channel: Questions in topic: "mouse input"
Browsing all 99 articles
Browse latest View live

Raycast Delay

Hi, I am trying to make a game which is similar to fruit ninja, in which u swipe to cut something. I am right now making it on the mac with the mouse(bcos i dont have iOS license). So what i do is i...

View Article



How to get the viewport rectangle for a gameObject or mesh?!

hello community! I was thinking about some possible collision detection methods(collision between a object and mouse Input) without a collider. I know how to do it with a collider attached but i wanted...

View Article

3d mouse logitech

How can i use my 3d-mouse from logitech 3dconnexion "space-navigator" in unity?

View Article

Dynamic animation and physics

Hi, I've tried reading around but have got no further with this. Please help. I am making a game where the player controlled model (human) will have created animation for walking and running for the...

View Article

Click and drag object, apply force to other objects

I'm working on a project where the user can click on an object to move it with the mouse, for it to collide with and "push" other objects (Think Air Hockey, where you can click and drag a mallet/paddle...

View Article


throw objects based on mousemovement

Hi, I want to throw an object into the distance when left button is released based on mousemovement (Like in Black and White:...

View Article

Specific Items Being Clicked

Relative newbie, and I have a few questions, and one that's on the top of my head involves mouse inputs. I have a really simple scene, testing out a shuffle bag script I found on the forums here. In...

View Article

space ship controls with a mouse

I'm working on a space game and looking to control the ship with a mouse, how do I got about making a dead space area on the screen in which no input is given to steer the ship.

View Article


How to stop movement, when mouse is off screen.

I'm hoping there's someone out there that can help me with a small problem. Currently I have an Input Manager attached to the main camera to allow the user to pan around the map by moving the mouse to...

View Article


Why does Input.mousePosition return a Vector3?

I'm trying to use the function properly, as I understand the x and y coordinates to be the screen's (x,y) position, but what's the purpose of a z coordinate?

View Article

Rotating object based off mouse input

Alright here's some background, I have a simple pickup object script that when the mouse is pressed and an object with a rigidbody is visible it will float the object in front of the player. Along with...

View Article

Restrict touch input

I have built a Mouse accuracy trainer, it tracks high scores via a server database. I have come across a situation however that if someone uses a touch monitor they can effectively cheat the system. As...

View Article

Problem with raycast

Hello! I'm having a problem when I try to spam creatures. I have some buttons to select which creature you want to invoque and after you have to press the right mouse button on the map to invoque it...

View Article


How to access other scripts from one script

I am trying to write code to move other GameObjects in a scene to a new location when a specific GameObject is clicked with the mouse. Right now I have the following test code: void Update () {...

View Article

Mouse input feels sketchy. Any way to fix?

I'm working on mouse look for an FPS game. Currently, I'm currently using the MouseLook code that's supplied with Unity. However, the input doesn't feel very crisp and I suspect it may be due to a low...

View Article


Can I limit the maximum acceleration applied by addTorque?

I'm working on a flying game, using a rigidbody to control the craft. I use this code for yaw: m_body.AddTorque(myTransform.up * Input.GetAxisRaw("Mouse X") * torque, ForceMode.Acceleration); and this...

View Article

RTS movement not working properly

I am fairly new to unity although I have some prior experience coding in C#. I am trying to make a basic RTS game and have been working on getting units to move properly and was looking for some help....

View Article


Get input strength from mouse movement?

Hi. I'm trying to get my mouse to rotate my camera proportional to how much I move my mouse. if(Input.GetAxis("Mouse X") > 0) { transform.Rotate(Vector3.up * Sensitivity * Time.deltaTime); } if...

View Article

Unity 2D jump in mouse direction

I like to write a scrip (C#) to move a game object in the mouse direction no constant force more a jump or teleport im not good but i think it should work but it dont work and it make some strange...

View Article

How to look up and down with mouse

I have a start of a camera look script and I have it to let me go left and right . How do I allow it to go up and down? C# float horizontal = Input.GetAxis ("Mouse X") * rotateSpeed;...

View Article
Browsing all 99 articles
Browse latest View live




Latest Images