Input manager, how to use positive/negative
I see that an entry named "horizontal" has a negative and positive that is A and D.How can I use this to for example, when user presses A, it will do -1, and when user presses D, it will do 1.Because...
View ArticleInput Manager Question
I am using the input manager "vertical" to account for my avatar moving forward and backwards. I was wondering if it was possible to set "positive" to both mouse 0 and mouse 1. In the case that I want...
View ArticleChecking number against boolean
So this works fine⦠var direction.x = Input.GetAxis("Horizontal"); if (direction.x) // direction is a positive value else // direction is a negative value . But the following doesn't validate. Is it...
View ArticleVector3.Slerp problem
Hello, I have this bit of code, which should change the y co-ordinate (and nothing else) of the GameObject it's attached to. using UnityEngine; using System.Collections; public class slerpTest :...
View ArticleReturn a value always positiv
Hi there i know that .ToString always return the value as a String. for example: number.ToString But is there somthing like .ToPositive? i mean return the value always positiv, no matter if the...
View ArticleConvert positive float to negative?
Hello :-) How can I convert a positive float to a negative float in C#? Thanks, Andreas :-)
View ArticlePositive to negative not working?
Hi, what I'm trying to achieve is a way to set my car in reverse when my button is pressed / when changeDirection is called. This is my current code: bool IsTouchingGearBtn; IEnumerator...
View Articlenormalized Z axis is always positive
Hi all. I have a question about normalize coordinates that you get from the mesh. I'm trying to do a simple Sphere, but for some reason I create only one half and the other not. I have observed that...
View ArticleInput manager, how to use positive/negative
I see that an entry named "horizontal" has a negative and positive that is A and D.How can I use this to for example, when user presses A, it will do -1, and when user presses D, it will do 1.Because...
View ArticleInput Manager Question
I am using the input manager "vertical" to account for my avatar moving forward and backwards. I was wondering if it was possible to set "positive" to both mouse 0 and mouse 1. In the case that I want...
View ArticleChecking number against boolean
So this works fine⦠var direction.x = Input.GetAxis("Horizontal"); if (direction.x) // direction is a positive value else // direction is a negative value . But the following doesn't validate. Is it...
View ArticleVector3.Slerp problem
Hello, I have this bit of code, which should change the y co-ordinate (and nothing else) of the GameObject it's attached to. using UnityEngine; using System.Collections; public class slerpTest :...
View ArticleReturn a value always positiv
Hi there i know that .ToString always return the value as a String. for example: number.ToString But is there somthing like .ToPositive? i mean return the value always positiv, no matter if the...
View ArticleConvert positive float to negative?
Hello :-) How can I convert a positive float to a negative float in C#? Thanks, Andreas :-)
View ArticlePositive to negative not working?
Hi, what I'm trying to achieve is a way to set my car in reverse when my button is pressed / when changeDirection is called. This is my current code: bool IsTouchingGearBtn; IEnumerator...
View Articlenormalized Z axis is always positive
Hi all. I have a question about normalize coordinates that you get from the mesh. I'm trying to do a simple Sphere, but for some reason I create only one half and the other not. I have observed that...
View Article