Skip to content

Instantly share code, notes, and snippets.

@jorgenpt
Created October 17, 2012 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgenpt/3903859 to your computer and use it in GitHub Desktop.
Save jorgenpt/3903859 to your computer and use it in GitHub Desktop.
body->SetTransform(new_position, ball.body->GetAngle());
body->SetLinearVelocity(b2Vec2_zero);
body->ApplyLinearImpulse(new_impulse, body->GetPosition());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment