We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I have a problem positionning a shape in a body. My code is pretty simple:
var body = new p2.Body({ mass: 0 }); var box = new p2.Box({ position: [50, 50], width: 50, height: 50 }); console.log(box.position); body.addShape(box); console.log(body.shapes[0].position);
(avalable in this codepen: https://codepen.io/dooxe-the-reactor/pen/WNQwVQE )
The first console.log display well the position of the shape: [50, 50], But the second log display [0 , 0].
console.log
[50, 50]
[0 , 0]
Is that an intended behavior ? If so could you explain me how to position shape in a body ?
Thanks a lot
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I have a problem positionning a shape in a body.
My code is pretty simple:
(avalable in this codepen: https://codepen.io/dooxe-the-reactor/pen/WNQwVQE )
The first
console.log
display well the position of the shape:[50, 50]
,But the second log display
[0 , 0]
.Is that an intended behavior ? If so could you explain me how to position shape in a body ?
Thanks a lot
The text was updated successfully, but these errors were encountered: