To use auto trace, select "Shape From Bitmap" from "Create Shape" dropdown. () to create shapes from bitmap image easily. Concave shape is decomposed to array of convex shapes, as Box2d supports only convex shapes * To create rope joint, select two bodies -> create rope joint * To create prismatic joint, select two bodies -> create prismatic joint * To create gear joint, select two bodies and either two revolute or two prismatic joints or one revolute and one prismatic joint -> create gear joint * To create pulley joint, select two bodies -> create pulley joint * To create wheel joint, select two bodies -> create wheel joint * To create revolute joint, select two bodies -> create revolute joint * To create weld joint, select two bodies -> create weld joint * To create distance joint, select two bodies -> create distance joint ![]() ![]() Joint.JOINT_ROPE // distance between two bodies can be constrained Joint.JOINT_PRISMATIC // a body's translation can be constrained along an axis (localAxis) Joint.JOINT_GEAR // a body can drive another body using either revolute/prismatic joint Joint.JOINT_PULLEY // bodies suspended from pulley Joint.JOINT_REVOLUTE // bodies can rotate about localAnchorB Joint.JOINT_WELD // bodies are glued to each other Joint.JOINT_DISTANCE // fixed distance between bodies Shape.SHAPE_CHAIN // vertices can be edited, equivalent to b2ChainShapeĮquivalent to b2Vec2 with an exception that it stores data as array Shape.SHAPE_POLYGON // vertices can be edited, equivalent to t() Shape.SHAPE_CIRCLE // cicle shape, vertices cannot be edited, equivalent to b2CircleShape Shape.SHAPE_BOX // rectangle shape, vertices cannot be edited, equivalent to tAsBox Shapes can be created only when editing a body // shape types auto trace image shape generation paramtersĮditor.getCurrentSelection() // returns an array of selected objectsĮditor.getSelectedBodies() // returns an array of selected bodiesĮditor.getSelectedShapes() // returns an array of selected shapesĮditor.getSelectedVertices() // returns an array of selected verticesĮditor.getSelectedJoints() // returns an array of selected joints Supports javascript console to edit scene using custom scriptsĮditor object drives the entire editor Editor.viewport // handles all the canvas events and renderingĮditor.sceneManager // handles selecting and editing objectsĮditor.gameView // handles physics simulationĮditor.resourceDirectory = "directory containing textures" // defaults to.Auto trace to generate shapes from 24-bit bitmap image.Graphical user interface to create and edit bodies, shapes and joints.Creating and exporting entire 2d scene, bodies or shapes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |