I’m having a strange issues where I have a platform that’s moving, and an object with a circle collider that falls on top of it.
When the platform moves, the circle collider (and all other colliders) just stays in place, as if the platform where made of ice. I made a similar project in Cocos2d using Box2d and it behaved differently, more how I would expect, ie the circle collider rotating in place when the platform below it moved.
Any ideas how to fix this? I’ve tried a 2d Physic Material with a bunch of friction on it, but that didn’t do anything.
I’m using Unity 4.3 and everything works fine! I’ve just tried!
I think the problem is in the way you move your platforms. Don’t move your platforms changing transform.position or transform.Translate(), move them by changing ridgitbody2D.velocity or by ridgitbody2d.AddForce(). So In your case platform should have ridgitbody2D as well as your circle. Your circle needs ridgitbody which will be affected by gravity and the platform needs ridgitbody because you have to use velocity property.
Also don’t forget to specify friction parameter i.e = 10