How should I convert timestamp in unity, which is a double, in a...
Sorry for the newbee question> I see timestamp property (in MessageInfo or LocationInfo unity structures) is of type: Double. But I always used BIG INT time stamp such as 1315990560 What should I do...
View ArticleIs iPhoneInput.lastLocation.timestamp broken on Android ?
iPhoneInput.lastLocation.timestamp is declared Double and always returns numbers like eg: 2.74097668812506E-117 How can I have a format like real UNIX timestamp, eg: 1315990560 ?
View Articlefloating point in counter
Hey people! I'm a nubbie in Unity and i need help i'd like to know how i can make a counter using floating points eg: I have an array and i need to increment in the var numbers from 1.4 to 3.46 how can...
View ArticleFloating points in a counter
Hey people! I'm totally nubbie in Unity and i need some help i'd like to know how i can make a counter using floating points eg: I have an array and i need to increment in the var numbers from 1.4 to...
View Articlefloating point model using by unity
In Visual C++, we can set floating point model to "fp:precise" to ensure the consistency of floating-point. The consistency of floating-point can be ensured in unity? Which floating point model is used...
View ArticleCustom World Coordinate system? Changing Space.World?
Hi, Im making an mmo and would like the server to allow a very vast world while the clients will still use the single precision float. Is it possible to create your own custom world coordinates? and if...
View ArticleUnity networking using cells
What we want / have - -We want to create a game which has a large world (27x27km or larger). -This game is an online game, therefore, our solution must work with other clients as well. To maintain...
View ArticleNetworking with cells
What we want / have - -We want to create a game which has a large world (27x27km or larger). -This game is an online game, therefore, our solution must work with other clients as well. To maintain...
View ArticleHow do I initialize a float texture by script?
My problem is that I want to initialize a texture with vertex positions to feed a shader. I'm thinking of trying a Texture2D with setPixel() but as the docs say there is no float format for creating a...
View ArticleRaycasting how to find position on end of ray float distance
Ray ray = gameObject.camera.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, 5/*Float Distance*/)){ transform.position = /*vector 3 ( position at end of ray distance )*/ } let say...
View Articleany else way finding floating point
is there any else way finding only floating point? char c; float f = Time.time; f -= (int) f; if (f
View ArticleBox doesn't move to the position as I expect
Originally, I want to simplily move a box whose position just changes like (0,0,0)->(0,0,-1)->(0,0,-2), etc. In order to move it more realistic, I use a counter set as 50 and move the box...
View ArticleEuler Angle problem in If check
I am rotating my object by 90 degree over some time according to the following code. `thisTransform.RotateAround (thisTransform.position, degrees, 90*Time.deltaTime);` What I want to do is when the...
View ArticleCan I import 32bpp floating point textures?
Hello, I'm quite new to Unity, but doing a feasibility study about converting an existing product to Unity3D. For this purpose, I am wondering: is it possible to import floating point textures with 32...
View ArticleScene scale and float precision
I've been struggling with this question for a while now. I have a big issue with scaling. My world, which mainly just consists of simply "dead" terrain is large, in real life scale we're talking about...
View ArticleWhy do those two calculations return different values?
Hi, I want to display the first three numbers after a point of a float value. Example: float 61.001 => 1 I have done this (using c#): float value = 61.001; float temp = (value*1000); int retVal =...
View Articleaccessing and changing a float variable in another script
HI I need to get a float variable that is stored in one script and change the value of that float using another script could you please tell me how to get that value and change it in JavaScript. thank...
View ArticleLaggy Floating HPBar
I have a working hp bar floating over head my enemies, my only problem with it is that when moving up to me sometimes it can be laggy all over the screen and I want it to look more professional.. any...
View ArticleMovement to vector3 stuck in a loop
I'm having trouble with a script that moves an object to a specific vector. The following method is a couroutine that is passed the target's position. The execution hangs up at the point where the...
View ArticleInfinite runner world creation
Hey people,can someone help me on scripting this.I'm doing this like subway surfer,keeping player stationary and moving the world around him.My question is how can i instantiate the track prefab...
View Article
More Pages to Explore .....