How do I an object with physics does not slide on top of a m

  • Hi!

    I am creating a game with objects using physical behavior, and a platform using sine and fícisa behavior. When a physical object is on top with a sine object, it slides. I've changed the parameters of friction and density and solves nothing.

    You guys suspect the reason?

    This is what happens: kohl.com.br/New

    Thank you!

  • For some reason the physics behavior ignores the sine behavior movements. If you script the movements then the box moves along the platform, but not quite at the same speed. If you use a pin behavior then the box sticks to the platform but other problems rise. Here is an example capx to display some of the above.

  • Nice, eli0s. I also thought about creating using the PIN, but this leaves the movement of unnatural objects.

    But I think this is really the only way.

    Thanks for capx! (:

  • You're welcome!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I managed to alleviate this problem, adding the VelocityY platform in VelocityY of the object above the platform.

  • Nice, although I don't understand why the overlapping is on the X axis. For the most part it works though. Some issues remain when the blue box is on the left/right edges of the platform. But these might be irrelevant with your actual gameplay mechanics

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)