Hacker News new | ask | show | jobs
by THENATHE 1075 days ago
I’ve been working as a hobbyist in unity for years, mainly just to keep up on c# because I have no practical application for it.

I have no problem whipping out anything simple like what you mentioned in a couple of minutes, but it does strike me as odd that there isn’t a way to just plug together. Like a good example is a lot of the water physics plugins. Do I want to spend a ton of time making a water physics and visuals engine? No. But, I have to attach this random object to my character controller so that it makes a splash when it touches the water, and another to make it float. Why not just code it so it interacts with a rigidbody?

I have a character model that runs, jumps, and shoots all using a single script and the concept of a rigidbody, but I have to add arbitrary handlers to make the rigidbody capable of touching water? Why not an arbitrary script that makes a rigidbody not touch water, if I eventually want that?