I’m currently playing around with physics. So far everything works (instantiation, interaction, etc…), but when I have an inactive Rigidbody in my scene and set it to this.fallingCube.visible = true; it wont be affected by physics and just remain in place.
I’d argue that’s by design, just because you make it visible doesn’t mean it necessarily should wake up, right? Though I’d have to check the behaviour in Unity as to what happens there / if it automatically wakes up
Checked it in Unity and (at least in Unity 2021.03.12f1) the Rigidbody component wakes up, as soon as you activate the gameObject (either via SetActive(true) or via the checkbox in the editor).
Ok so the reason is/was the object starting off disabled and the core code initializing the “active” flag with the visible state (hence the object is marked as inactive)
in your code you then set “visible” to true which doesnt change the active flag so the components never get activated/enabled. I think I know how to change/fix this, testing a bit more here