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

applyForce applyLinearImpulse waste time applying a zero force #183

Open
bobcgausa opened this issue Apr 23, 2021 · 2 comments
Open

applyForce applyLinearImpulse waste time applying a zero force #183

bobcgausa opened this issue Apr 23, 2021 · 2 comments

Comments

@bobcgausa
Copy link

the other force functions do not exhibit this behavior
select examples 2 and 5 from the following iforces constant motion tutorial
https://editor.p5js.org/Bobcook47/sketches/dl63nTD8q

observe that velocity is continuously updated even when the object is stopped

and a mystery, at least to me
observe that when the box collides with the vertical wall on either side,
its angle transforms to 0.02 and never changes?

@shakiba
Copy link
Collaborator

shakiba commented Apr 24, 2021

I wasn't able to see the problem in your example

@Toby222
Copy link

Toby222 commented Apr 26, 2021

image
note that the -0.00 values flicker

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