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

getGravity bug #182

Open
bobcgausa opened this issue Apr 23, 2021 · 1 comment
Open

getGravity bug #182

bobcgausa opened this issue Apr 23, 2021 · 1 comment
Milestone

Comments

@bobcgausa
Copy link

As the following iforce custom gravity tutorial example shows
getGravity().neg() actually inverts gravity because getGravity does not clone the vector

https://editor.p5js.org/Bobcook47/sketches/ITP2X7D-g

@Toby222
Copy link

Toby222 commented Apr 26, 2021

This is normal behavior, in line with how Box2D does it

cf. box2d source

@shakiba shakiba added this to the v2.0 milestone Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants