How to Make Object Weighed Down by Player

Hello,

My game (3D) involves the player having to land on certain flat platforms. I want these platforms to lower a very small amount when the player lands on them (I want them to be “weighed down” by the player). I’ve tried experimenting with the player’s and platform’s rigidbodies and physics, but still haven’t gotten the outcome I want. How can I get this effect using a script?

Do you mean you want to do the physics yourself? That’s a pretty big lift.

You should experiment with SpringJoints and semi-anchored Rigidbodies. You can come up with some pretty compelling stuff…

1 Like

Decided to muck about with this a little. :slight_smile:

It is fiddly. You gotta play with springs and damping and oh my.

But it works.

7201540–864796–LandableBouncyPlatform.unitypackage (77.3 KB)

1 Like

Wow, this is exactly what I needed! Thanks, Kurt!

1 Like

Awesome!

Disclaimer: I tinkered with this stuff years ago in my Jetpack Kurt game so I had a leg up on what to try this time. :slight_smile: