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

[WIP] [help] arbitrary PolarCurve as an obstacle #196

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Datseris
Copy link
Member

@Datseris Datseris commented Feb 4, 2020

This PR is supposed to bring an arbitrary polar curve as an obstacle for collisions, following the create your own obstacle tutorial.

I've added the obstacle interface to this since almost a year but then never had the time to continue this. The only thing left is implementing collision(::Particle, ::PolarCurve) .

I have some notes on how to do that:

IMG_20200204_154642

("eom" means equations of motion. θ is the particle propagation angle, the sketch assumes the particle is inside the polar curve. p_0 is the particle's position. $\hat{n}$ is the normal vector at collision, so that the specular reflection can be done)


I'll leave this here until me or some other blessed soul finds the time to add collision.

@Datseris Datseris added obstacle New obstacle or enhancement of obstacles help wanted labels Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted obstacle New obstacle or enhancement of obstacles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant