Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fromVertices with parts error #600

Closed
yungzhu opened this issue Apr 16, 2018 · 0 comments
Closed

fromVertices with parts error #600

yungzhu opened this issue Apr 16, 2018 · 0 comments

Comments

@yungzhu
Copy link

yungzhu commented Apr 16, 2018

image

`

        var arrow = Vertices.fromPath('40 0 40 20 100 20 100 80 40 80 40 100 0 50');

        var star1 = Bodies.fromVertices(300, 100, arrow);
        var star2 = Body.create({
			parts: [Bodies.fromVertices(300, 100, arrow)]
		})

        World.add(world, [star1,star2]);

`

The star1 and star2 should be the same.

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

No branches or pull requests

2 participants