I’m having this issue and I can’t get it right. I suspect it has something to do with local coordinates Vs content coordinates. But I’m not sure. I’ve experimented with the “object:localToContent()” function but it doesn’t seem to solve the issue.
Bellow are two images explaining the problem.
I have:
-
The display/content area (red lines)
-
A group (blue area)
-
Objects (green boxes)
The boxes are added to the screen and given physics properties. They fall and land on the bottom of the content or on another green box. When a green box collide with the bottom or with another green box it is added to the group (blue area). If I transition the group downwards, say the height of two boxes, the coordinates of the top most box are not “updated”. The next falling box will think that the top most box in the group is located where the box with the green line is, the “Actual Y pos”, when it should “know” that the top most box in the group is at the “Real Y pos”.
How do you solve this?
[import]uid: 41041 topic_id: 11185 reply_id: 311185[/import]