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

Removing Accelerated Velocity #19

Open
ehuss opened this issue Mar 1, 2013 · 0 comments
Open

Removing Accelerated Velocity #19

ehuss opened this issue Mar 1, 2013 · 0 comments

Comments

@ehuss
Copy link

ehuss commented Mar 1, 2013

The code in Contact::calculateDesiredDeltaVelocity looks off to me. The velocity from acceleration in body[0] appears to be ignored. The following snippet of code appears to have no effect:

if (body[0]->getAwake())
{
    body[0]->getLastFrameAcceleration() * duration * contactNormal;
}

I'm guessing it's supposed to be:

if (body[0]->getAwake())
{
    velocityFromAcc += body[0]->getLastFrameAcceleration() * duration * contactNormal;
}
LucasCampos added a commit to LucasCampos/cyclone-physics that referenced this issue Mar 1, 2013
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

1 participant