How to determine the number of pixels per unit?
I'm using the LineRenderer to produce a detailed 2D curve. I want to determine the number of pixels per unit based on the distance of the object from the camera and the output resolution of the...
View ArticleHow long is a string?
"How long is a piece of string?" may be a rhetorical question, but I'm hoping there's an answer to "How many pixels long will my string be when rendered into a GUI.Box?"I want to grow my box to make it...
View ArticleUsing millimeters to move object
Hey there, I know that Unity uses units and not exact meters, centimeters or millimeters for measruement, or better said: the units might be what I want (as long as it doesn't get to physics), but for...
View ArticlePossibility to draw objects with real world measurements?
Hello, I have a game to make for Windows. This game need to have objects which have the same measures as in real world (and not depending of the screen resolution). What I mean is if I draw an object...
View ArticleHow I can measure the speed of a rotating object?
How I can measure the speed of a rotating object? i need to use, to make a Tachometer for a car game please . and use it LATER (the code) in many more tasks too. thanks
View Articlecollider2d how to measure??
I'm trying to make a game where the character has to walk on top of things. I need to know the percentage of path that has come in each subject. I already tried with the size collider, but I use...
View Articlemeasure to an axis
I have got a glider and i have got a thermal, wich in my case is just a cylinder with an capsule colider wich triggers an upward force. What i want to do now is that, when the glider comes more...
View ArticleCreating an Overlay with objects?
Hello, I'm pretty new to Unity and made a script to instantiate objects in certain places to help me level design.(Like a Ruler, I needed measurements for a lot of things) The only problem is, it only...
View ArticleDegree measurement between two objects : bug
Hello everybody, i am in big need to measure the relation between object A and Object B in terms of degrees. What do i mean? Imagine a compass. You stand somewhere (your Character Object), you rotate...
View Article[2D] Get 0-359 compass angle player object
The closest I could find on the answerhub was: float AngleBetweenMouseAndPlayer() { Vector3 v3Pos; float fAngle; //Convert the player to Screen coordinates v3Pos =...
View ArticleHow to measure transform.rotation.x / y changes correctly?
I have a round plane, that rotates in x and z axis. I need to trigger a special event every time when rotation is big enough. Problem is that in one side it's from 0 to 90, while in other side it's 270...
View ArticleMeasuring the Angle Between Two Transforms for t Param of Quaternion.Slerp
So, I'm using Quaternion.Slerp to rotate a door hinge, but I'm having a hard time coming up with a good way to measure the t parameter. I have a door. It has a knob. I have a start transform whose...
View ArticleTranslating measurement in rotation speed and game object size to...
I have questions I would like to know regarding unit size in Unity 3D to human measurement unit. Here as follows: 1. My boss wants me to translate the size of the GameObject in cm, inches, or meters. I...
View ArticleGetting width and height of gesture?
At a loss to find how to measure mouse/touch input h and w, easy way in C# anyone?
View ArticleHTC VIVE distance between controllers
Hi there, someone could help to figure out the best way to retrieve the distance between the 2 vive controllers? thank you so much
View ArticleDetect when audio thread is taking too long
I'm working with procedural audio generation using OnAudioFilterRead(). When this method is implemented you can see a VU meter along with a measurement of processing time. From the docs it reads "The...
View ArticleRadiation measurement
i'm trying to find a way to measure the absorbed radiation by an object. best thing to do could be an "invisible" light on the radioactive emitting object. that light should be able to pass through...
View ArticleDoes Unity have tools to measure quality metrics ?
Hi everybody, I'm searching for how count some quality aspects of my Unity3D project like number of methods, code duplication ... Do you know a soft for this ? Thanks :)
View ArticleHow to get difference between two values
Ok. You guys know the good ol' useful: "if(Vector3.Distance(Pos1, Pos2) > Value)", right? Now I have a question. How in the world can I apply that same method to 2 simple floats or intigers? I have...
View ArticleStupid question: Targeting objects to measure distance and assigning...
My apologies for these incredibly simple questions and poor formatting. I'm super new to coding and have no idea what I'm doing. Is there a simple way to find the nearest version of a type of tag? I...
View Article