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

Grab shapes by a specific point #39

Open
mkhan45 opened this issue Aug 25, 2020 · 1 comment
Open

Grab shapes by a specific point #39

mkhan45 opened this issue Aug 25, 2020 · 1 comment
Labels
enhancement New feature or request Hard

Comments

@mkhan45
Copy link
Owner

mkhan45 commented Aug 25, 2020

Right now, shapes can be dragged from their center. To do this, a velocity towards the mouse is applied to the center of the shape.

There should be an option to drag shapes from an arbitrary point on them. This way, it would be easier to rotate bodies. AFAIK, nphysics doesn't allow adding a velocity to a specific point on an object, meaning that this has to be done by applying a force at a point. I think that something has to be done to map object local coordinates to global coordinates and vice-versa

@mkhan45 mkhan45 added enhancement New feature or request Hard labels Aug 25, 2020
@mkhan45
Copy link
Owner Author

mkhan45 commented Aug 30, 2020

This should probably wait on #40 because it might be different between nphysics and rapier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hard
Projects
None yet
Development

No branches or pull requests

1 participant