
sleitnick
@sleitnick • 38,821 subscribers
Engineer at https://t.co/fmbN8adq7V
Shorts
Videos

You can use the quadratic formula to make homing missiles properly lead and hit their target. I've used this in games for like a decade. I wish they'd use examples like that in math class. Give practical/fun examples. I hated math b/c it was too abstract. Gamedev made it fun.
sleitnick1,400,595 views • 2 months ago

Stress-testing 100k agents. FPS dropped to 60. I had to move most of the logic to C++ to make this work. I could only scale to ~10k in GDScript before hitting a wall. Each "agent" is also just a cube here. Nothing complex. My goal is to get this stable at 144hz w/ 100k agents.
sleitnick38,648 views • 27 days ago

That satisfying seconds-hand tween. Just a fast tween using elastic easing function
sleitnick20,358 views • 11 months ago

Server authoritative movement with client prediction and rollback/replay support. In this example, the client exploits by moving a wall out of the way. But the server owns the movement. The client has failed predictions due to the exploit, and rolls back. #RobloxDev
sleitnick20,016 views • 1 year ago

I've always wondered how box selection works, so I tried it out this morning as a warmup for the day. My algo here is simple, but not efficient (like 5ms for 10k cubes): - Get rectangle min/max points - Get screen point of each cube - Compare screen point to min/max bounds
sleitnick13,184 views • 8 months ago

DataStore Editor v3.6 is coming tomorrow! - Name field autocompletes to datastores in your experience - Key version selection - Recent keys are remembered - Closing/reopening the plugin retains state - Internal UI framework swapped to React Lua - And lots of bug fixes #RobloxDev
sleitnick15,493 views • 11 months ago

Another game dev pop quiz! I want to move a block forward until it hits the closest surface in front of it without clipping. Blockcasting can be used. But on Roblox, the result gives you a single point of contact (yellow dot). How do you solve for the green dot? #RobloxDev
sleitnick12,619 views • 1 year ago

16 bits of addressable read/write memory! This took me over an hour to wire up. #RobloxDev
sleitnick10,406 views • 2 years ago
No more content to load