Set the platform rigidbody to “kinematic”.
Is there another way? Setting the platform to is Kinematic doesn’t make me move the platform, but it does make me fall through.
Disable movement on the rigidbody, and enable it only when the platform is supposed to move.
I don’t think I understand what you mean. What sort of movement? Which rigidbody? The one on the platform?
Nevermind that actually, why does the platform have a rigidbody if it’s only moved by script?
I don’t remember, but I tried removing it and it didn’t fix anything.
I remember now. I added a rigidbody so I could freeze it on the z-axis
However, if the platform is only moved by script, it doesn’t need a rigidbody because it’s not supposed to move on it’s own. Just give it a box collider to support the player.
Yes, it moves on its own, but it shifts when it comes into contact with the player. I need it to stay in its Z position