How do I make one box with a ball inside

0 favourites
  • 4 posts
From the Asset Store
Over 2700 files with all the colour combinations from a 15 colours palette!
  • Hello, I need your help with a problem in the management of physical and gravity, I need some logic I think ...

    In concept I want to implement is a ball inside a frame (a square) and that as I rotate the square as the key is pressed, the beanbag react to the event and according to the position of the box to move or fall.

    So far I've only made the beanbag advance but when the angle of the layer with the square is 270 meor force or momentum is reversed and I'm not getting to create an algorithm that allows me to simulate this effect.

    Have any idea??

  • I solved already using a wrapper for the map, so to rotate the container not only alter the center of gravity!!! XD

  • Hi

    This is an English forum and the rules state you should post in English or provide an English translation. This would help you get a response to your query.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi

    This is an English forum and the rules state you should post in English or provide an English translation. This would help you get a response to your query.

    Ok, tks!

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