have Blocks - yes
Stack them - yes
remove full lines - no
so there should be no problem
Nicolas Gramlich wrote:Hi,
Changeset: http://code.google.com/p/andenginephysi ... 88fbc18c2d
Actual class: http://code.google.com/p/andenginephysi ... lator.java
Pretty useful once a Vector2[] has been triangulated: PhysicsFactory.createTrianglulatedBody(...)
Summing up, the usage looks somewhat similar to this:Using java Syntax Highlighting
final List<Vector2> vertices = new ArrayList<Vector2>(); // Add some vertices here! final ITriangulationAlgoritm triangulationAlgoritm = new EarClippingTriangulator(); final List<Vector2> triangles = triangulationAlgoritm.computeTriangles(vertices); final Body body = PhysicsFactory.createTrianglulatedBody(pPhysicsWorld, pShape, triangles, pBodyType, pFixtureDef);Parsed in 0.032 seconds, using GeSHi 1.0.8.4
Hope this helps
Bugs might be includedand the API might change slightly in future releases
Best Regards,
Nicolas
Radzell wrote:Are the vertices you input localized or are they based on the shapes placement in the world.
Users browsing this forum: faeldx and 2 guests