LumpySpoon

u/LumpySpoon


r/ebikes•

Hello, my ebike battery plastic tooth, that was holding the battery to the bike, broke off. Do you guys have any ideas what I could do to fix it? I cannot leave it as is, because the battery rattles too much, and I'm afraid its going to break off entirely from the bike.

I have attached some photos, showing where it broke off.

https://preview.redd.it/c7zuv0of2wu81.png?width=1177&format=png&auto=webp&s=22f292c66c52d75816fbdbd7eb833d38d5d4766c

https://preview.redd.it/a8r6x2of2wu81.png?width=693&format=png&auto=webp&s=9625992b2669fbdcb4fdb5d305e7e75124f167e8

19





r/node•

Hello, I've recently been trying to learn how to use node, from a unity c# background. And i have been wondering is it possible to run commands in command prompt, while node server is running? And also with theese commands to invoke functions in the server? Thanks!

15

r/Unity3D•

Hello! I'm trying to figure out the best way i can achieve multiplayer functionality in my games. The two most popular ways seem to be Photon and Unet. But from what i understand they are both cloud based. I also seen someone do multiplayer with socket.io and node js. I wanted to ask you guys, what you think the best solution would be for me to look in to. Thanks!

37

r/Unity3D•

Hello! I recently started lightmapping and encountered an issue, enlighten was producing artifacts on my light maps, that i later found out i could fix by combining the modular models into one big mesh. It works nice, but now i need to save the big mesh, and that could take extra 5mbs per level(without the lightmap itself). Combining the mesh only takes like half a second, if i could combine the mesh on level load, and then apply the already generated lightmap it would help me a great bit. Do you guys know if this is possible? I'm targeting the mobile platform so the size of my game is important.

20

r/Unity3D•

Hello! I've been working on a 2d voxel engine, similar to terraria. Things are going pretty good, but I've ran into a problem, I can't seem to think of a good way to generate polygon collider from the mesh data. I've gotten as far to generate mesh edge points, but i seem to be stuck. I can't figure a good way of sorting these points, to make it work with polygon collider, could someone help me?

You can see the generated edge points here.

22

r/Unity3D•

Hello! I'm trying to create a voxel engine, everything is going pretty good. It works pretty simple, i just create quad vertices and triangles, and just put it in my mesh. Since i use generic list to create those quads i need to convert them to an array first, before being able to set them to the mesh. But i've encountered a problem, in the profiler i noticed that ToArray() method creates a lot of garbage. I've been scratching my head for a couple hours now trying to figure it out, but can't seem to do it. Do you guys know how to get around this issue?

214

r/Unity3D•

I'm currently making a fps, i had a problem that my weapon was cliping through walls, so i made another camera and i set it to render only the weapon on a different layer. It works, the weapon doesn't clip through walls, but now i have a problem that shadows don't interact with the weapon, because the objects are on different layers. Could someone help me fix this?

Edit : To get a better understanding of what i mean, see this. This persons solution is to duplicate every shadow casting object to the layer witch the gun is, and set the mesh filter to shadow cast only. This solution is very messy. The person who finds a better solution gets a free

36