In box2d there used to be a ground body by default to which we can create all the joints to.
How do I access that here ? [import]uid: 38082 topic_id: 9289 reply_id: 309289[/import]
In box2d there used to be a ground body by default to which we can create all the joints to.
How do I access that here ? [import]uid: 38082 topic_id: 9289 reply_id: 309289[/import]
I solved it by creating a huge static body with mask Bit set to 0 so that it won’t collide with anything and creating joint with it.
[import]uid: 38082 topic_id: 9289 reply_id: 33913[/import]
actually, you can create a static rectangle 10 x 10 far off screen and attach anything to that. same effect as creating a large ground body.
as I see it, joints require a pair of bodies but don’t actually need the world coordinates for the joint endpoints to be located within the bodies themselves. [import]uid: 8271 topic_id: 9289 reply_id: 34076[/import]