Quantcast
Channel: Latest Questions by gsus725
Browsing all 12 articles
Browse latest View live

How do I rotate a vector please? (image included)

I am having a problem rotating a vector. In the image you can see I have a vector, and I want to create another vector "attached" to the end of the old vector, but rotated 45 degrees. But the problem...

View Article



Is there something wrong with Unity's built-in pathfinding?

I'm about to start adding pathfinding, but I notice there are tons of third party pathfinding assets on the asset store, this makes me think that maybe there is something inadequate about the built-in...

View Article

How do I generate a "random" number from a seed?

I am trying to generate a pseudo-random number from a seed number. In my case Network.time is the seed from which I want to derive this "random" number. And I need the random number to be between 0 and...

View Article

Making an object float in water

var gravity=Vector3.zero; var target_gravity=Vector3(0,-10,0); var water_level=65f; function Update(){ var surface_distance=water_level-transform.position.y; target_gravity=Vector3(0,-10,0); //you are...

View Article

How do I rotate a vector please? (image included)

I am having a problem rotating a vector. In the image you can see I have a vector, and I want to create another vector "attached" to the end of the old vector, but rotated 45 degrees. But the problem...

View Article


Is there something wrong with Unity's built-in pathfinding?

I'm about to start adding pathfinding, but I notice there are tons of third party pathfinding assets on the asset store, this makes me think that maybe there is something inadequate about the built-in...

View Article

How do I generate a "random" number from a seed?

I am trying to generate a pseudo-random number from a seed number. In my case Network.time is the seed from which I want to derive this "random" number. And I need the random number to be between 0 and...

View Article

Making an object float in water

var gravity=Vector3.zero; var target_gravity=Vector3(0,-10,0); var water_level=65f; function Update(){ var surface_distance=water_level-transform.position.y; target_gravity=Vector3(0,-10,0); //you are...

View Article


Simple UNET example won't connect!

I took this example straight out of the documentation but it doesn't actually let the client connect. My pc is port forwarded, I'm running 2 instances of the game, starting the server first, then the...

View Article


How to calculate network jitter from List of arrival times?

I have a List containing time elapsed since last position packets arrived. I send them 10x per second so the list contains a bunch of 0.1s on average but with some fluctuation. So how do I calculate...

View Article

Where do I assign "GlobalConfig"? (UNET)

I see that NetworkManager can use it but I am not using that because it is too High Level. I see that TransportLayer.Init(GlobalConfig) also exists but I am not using the transport layer. I am using...

View Article

Reliable vs ReliableSequenced (UNET)

someone told me that using Sequenced messages will hold up everyone's connection if packets get sent out of order, is this true? I thought all this time it only affects the specific connection sending...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images