I’m building walls out of individual bricks with box colliders and rigidbodies, that can be knocked down by other moving objects. This works fine, but as soon as gravity hits, the wall does this bounce where the bricks settle downward a little. Depending on the size of the wall, bits fall off before any intended collisions happen. I’ve replaced the wall with a static trigger version of itself that replaces itself when hit, and that solved the wall falling apart on its own before it is hit by anything, but that still means the whole wall behaves like it was it, even if just a portion should realistically be responding to impact. I tried connecting the bricks with joints, but the lag that caused after building about 2 stories was unbearable. I need my buildings to be at least 10 stories high.
I’ve also tried attaching the script: void Start() { rigidbody.Sleep(); }
This keeps the bricks from shifting right away, but now I’ve got bricks hanging in the air in defiance of gravity if a section of wall below them has been destroyed.
Any suggestions on getting my bricks to stay put and behave realistically, without putting too much strain on performance?
Do you mean the wall of crates? When you start the scene they also do that same bounce that my walls do
– I_Am_The_Minion