Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
142 views

How to interpolate colors around the spectrum of hues?

I wanted to generate a 7 segment display whose color brightness varies with time, this can be done by just using linear relationship. ...
chuackt's user avatar
  • 253
2 votes
0 answers
185 views

C# UDP Multiplayer Networking - issue with choppiness and consistency

I know I've done this incorrectly, but I don't know what the right way is. Right now I have two clients that connect to a server. Each tick the players send a packet of information containing their ...
user2578216's user avatar
0 votes
3 answers
1k views

Camera Jitters When Displacing and Rotating Smoothly

DISCLAIMER: I am using Unity 5.6.5f1 for this code, I honestly don't know if there would be API updates on later versions, though I don't think so. I tried to make a simple Third Person Camera that ...
LifGwaethrakindo's user avatar
1 vote
1 answer
312 views

Acceleration in Unity

I am trying to emulate acceleration and deceleration in Unity. I have written to code to generate a track in Unity and place an object at a specific location on the track based on time. The result ...
Dan's user avatar
  • 185
1 vote
1 answer
1k views

Unity multiplayer with custom server - interpolation jumping

I've built a Server / Client environment for my Unity game which is pretty simple. It is written in C# with asynchronous sockets. To keep it simple, the player sends his input data and the server ...
hapablap's user avatar
  • 111
0 votes
1 answer
79 views

Interpolate object collision stuck in Unity

I am working on a very basic test in 2D. The problem I am having is that, when my sprite collides with the ground, it is checking the event too frequently. The sprite stays in limbo, as it doesn't ...
Phil3992's user avatar
  • 135
15 votes
6 answers
14k views

How do I generalise Bresenham's line algorithm to floating-point endpoints?

I'm trying to combine two things. I'm writing a game and I need to determine the grid squares lying on a line with the floating-point endpoints. Moreover I need it to include all the grid squares it ...
SmartK8's user avatar
  • 614
0 votes
1 answer
636 views

Lerp an object based on timers

I'm trying to make a target lerp between two objects based on a timer. At the moment, I have the following code: ...
N0xus's user avatar
  • 1,011
11 votes
2 answers
409 views

Interpolating between two networked states?

I have many entities on the client side that are simulated (their velocities are added to their positions on a per frame basis) and I let them dead reckon themselves. They send updates about where ...
Vaughan Hilts's user avatar
9 votes
2 answers
371 views

Server-side Input

Currently in my game, the client is nothing but a renderer. When input state is changed, the client sends a packet to the server and moves the player as if it were processing the input, but the ...
Thomas's user avatar
  • 91