How to make an object interact properly with a moving and rotating platform

Updated on April 26, 2018 in [A] 2D
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
5 on April 25, 2018

Check out the Image

The player will control the speed and rotation of the wagon (check out the above link to the image) 

I want the crate to stay on the moving platform while also falling of when a steep angle is made.

Making it a child doesn’t help. Any suggestions???

Thanks 🙂

  • Liked by
Reply
4 on April 25, 2018

Make a physic material and crank it’s friction up.

on April 25, 2018

Tries that too, but it doesn’t seem to work

 

Wise
on April 25, 2018

What do you mean doesn’t work?

What does it do?

 

on April 25, 2018

It doesn’t do anything, The crate falls off when the wagon is moving

 

Wise
on April 26, 2018

Hey, sorry for the late response.

Are you moving the wagon with rigidbody AddForce? or just dragging it in the editor?

 

Because dragging it in the editor it will look like it’s sliding, but I just stacked some 2d boxes and moved the bottom one with Addforce, and the rest held on up top just fine

 

Edit: you can even directly set it’s velocity instead of using AddForce if you want the cart to be kinematic. But you HAVE to use the rigidbody to move. Setting the position or using Translate won’t work.

Show more replies
  • Liked by
Reply
Cancel