How to add objects to the world randomly?

Discuss issues specific to the Flash/AS3 port of Box2D
novice6519
Posts: 4
Joined: Fri Jul 24, 2015 1:27 pm

How to add objects to the world randomly?

Postby novice6519 » Mon Oct 12, 2015 3:29 pm

Hi,
Sorry for my english. ı hope i can tell my question exactly. i want to add objects to the World at random points , but exactly at that point. i want , that point isn't on any object but it can be in the object's AABB . what should i do ?
Please , help !

novice6519
Posts: 4
Joined: Fri Jul 24, 2015 1:27 pm

Re: How to add objects to the world randomly?

Postby novice6519 » Mon Oct 12, 2015 3:58 pm

I think , i should revise my question . I want do a test with my shape . my shape must not overlap with any shape , but the AABBs can(must) overlap . then , i will add my shape's body on that empty space .


Return to “Flash”



Who is online

Users browsing this forum: No registered users and 2 guests