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

Penumbra Physics! #13

Merged
merged 7 commits into from
Mar 21, 2017
Merged

Penumbra Physics! #13

merged 7 commits into from
Mar 21, 2017

Conversation

BlizzCrafter
Copy link
Contributor

@BlizzCrafter BlizzCrafter commented Mar 20, 2017

I created a sample project which shows how you could create a complex body out of a sprite with the Farseer Physics Engine and add it to the Penumbra Component as a Hull.

See feature request #3

Please take a look at this site and README.md
https://github.com/sqrMin1/penumbra/tree/master/Samples/FarseerPhysics

Edit: The generated Hulls have a simple structure because I made use of the "Simplifying Tools" of the Farseer Physics Engine (in the case of the sample project it's the "douglas peucker simplifier" (https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm). There are also other simplifying algorithms available in the Farseer Physics Engine. This makes it a perfomant solution.

BlizzCrafter and others added 7 commits March 20, 2017 21:10
…e a complex body from a sprite and add it to the Penumbra Component as a Hull. Also added the necessary Farseer Physics Source and Farseer Physics Debug View for debugging purposes.
@discosultan
Copy link
Owner

Thanks, this is a very useful sample! It's nice to see Farseer and Penumbra used together.

I'm going to move Farseer source under the specific sample as I don't want to clutter the root folder with projects Penumbra doesn't directly depend on.

@discosultan discosultan reopened this Mar 21, 2017
@discosultan discosultan merged commit 69b799f into discosultan:master Mar 21, 2017
@BlizzCrafter
Copy link
Contributor Author

Nice to hear that you liked the sample!

You are right, moving the Farseer source under the specific sample is a better solution. Thanks for your effort!

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

Successfully merging this pull request may close these issues.

3 participants