Open bobcgausa opened 3 years ago
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
This is normal behavior, in line with how Box2D does it
cf. box2d source
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