Newbie: How to simulate character jumping on trampoline

I’m new to Unity3d and I didn’t find what I need in searches. Honestly, I may not know enough about unity to properly search.

What I’m looking for is how I should approach simulating a character jumping on a trampoline mesh? Here are some requirements I have in mind:

  • Character can land anywhere on the top of the trampoline
  • Jumping in the center of the trampoline produces the most stretch, where the edges produce less (I’m wondering how I would actually animate the mesh deformation)
  • How to calculate the resulting force direction (e.g. the character jumps from trampoline center to the left, which should spring him slightly right, not just up)

You could make a bouncy material and add it to the trampoline. Freeze the x and z axes. That ought to work as a trampoline. This could be done much more efficiently in code, but this will work just fine.

Thanks, I tried that and it works. I’m looking for something more animated however. I tried using the interactive cloth and pinning this into a trampoline… This worked, but wasn’t very appealing. I’m taking a new approach that is 2D, similar to this http://youtu.be/HYF7gyaAGT0

I do have an idea for this kind of trampoline, but it may be a bit complicated. Say you model a trampoline body and model the cloth material which you will attach other trampoline body and make it a child object. You could then create a script which uses OnCollisionEnter() or OnCollisionStay() to detect wether the character is touching the trampoline cloth and if it is, bounce him back upwards in the y-axis using vectors and add force. As for the cloth stretching part, you can simply animate the cloth in the cloth that you created in the unity animator and stretch it out when e player lands/collides with it. Hope that makes sense. :wink: