Hi everybody
Hope someone will help me with this.
Imagine that we have 2 objects (sprites):
- box
- ball
1 instance of "box" is placed on layer "Boxes"
1 instance of "ball" is placed on layer "Balls"
a box has behaviors: Physics (Immovable), DragDrop
a ball has Physics behavior (so it has a gravity like a real-world ball)
"On the start of layout" I "Destroy" a ball and create a Loop to Spawn 100 balls (instances) inside of the box.
It works well when I run a preview (balls appear in the box)...
Problem:
... but when I start to drag a box or rotate it balls are flipping out of the box - despite collision polygons.
Looks like collision polygons of balls do not interact with collision polygons of box walls when I move the box.
I want the balls:
1) to stay inside the box (inside collision polygon)
2) move inside the box if I change the box angle a bit (like in real-world)
Need some help with it.
Thanks)