Platforms, interpolate and restitution
Hello all!
I was just wondering, is there a way to create moving platforms using interpolate while keeping restitution in place? Right now it seems that if you use interpolate, it kills all the bounce that restitution would apply.
For example if I have a platform that simply moves back and forth, and it hits a ball or something, it should bounce the ball with the inerherited inertia of the moving platform. Using interpolate, kills that effect.
Right now, I have platforms that are checked movable and switch linear motion on and off to create moving platforms. The characters bounce well off of them, but motion of the platform isn't perfect and issues can arise where the platforms get moved or pushed out of place.
Anyway around this?
I was just wondering, is there a way to create moving platforms using interpolate while keeping restitution in place? Right now it seems that if you use interpolate, it kills all the bounce that restitution would apply.
For example if I have a platform that simply moves back and forth, and it hits a ball or something, it should bounce the ball with the inerherited inertia of the moving platform. Using interpolate, kills that effect.
Right now, I have platforms that are checked movable and switch linear motion on and off to create moving platforms. The characters bounce well off of them, but motion of the platform isn't perfect and issues can arise where the platforms get moved or pushed out of place.
Anyway around this?
Comments
Every .1 seconds change attribute self.width to self.width + 1
Or whatever...