Open
Conversation
to create prototype for an Elliptical body. Added conditionals to the collision detection methed for different body shapes. Added collision detection and setting of normal vector for limited case of collision of two squares of normal orientaion. Added a variable to get the orientation of bodies of rectangle type for more general collisions. Added the start of simple method for adding torque for off center collisions of squares. Work in progress.
Contributor
|
Awesome! This would be great if it came from the community. I'm the current author of the physics engine, and I like your approach. Let's keep this conversation going. You'll be seeing physics examples in our examples repo (https://github.com/famous/examples) in the coming week, and it would be great to add an example to demonstrate rectangular collision. There will also be some updates to the physics files soon, so make sure to rebase on top of our develop branch (coming soon to the public). |
|
hey @carlfahl can you move this over to famous/famous? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have started work on adding rectangular collisions. I am starting with some simple cases. The first of these is two squares with normal orientation. I have not tested this yet. I wanted to submit a pull request early to get a dialog going. Is anything being worked on internally in collisions?