Skip to content

how to Change the shape of body dynamically #51

Description

@a6965921
const gravity = new b2Vec2(0, 10);

world = new b2World(gravity);

const bd_ground = new b2BodyDef();

const ground = world.CreateBody(bd_ground);
const shape = new b2EdgeShape();
var xx=new b2Vec2(3, 4)
shape.SetTwoSided(xx, new b2Vec2(6, 7));
ground.CreateFixture(shape, 0);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions