Quantcast
Channel: Questions in topic: "positive"
Browsing all 16 articles
Browse latest View live
↧

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 Article


Input 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 Article


Checking 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 Article

Vector3.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 Article

Return 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 Article


Convert positive float to negative?

Hello :-) How can I convert a positive float to a negative float in C#? Thanks, Andreas :-)

View Article

Positive 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 Article

normalized 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


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 Article


Input 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 Article

Checking 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 Article

Vector3.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 Article

Return 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 Article


Convert positive float to negative?

Hello :-) How can I convert a positive float to a negative float in C#? Thanks, Andreas :-)

View Article

Positive 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 Article


normalized 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
Browsing all 16 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>