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

Rectangular collisions #17

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

Conversation

carlfahl
Copy link

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?

carlfahl added 2 commits July 14, 2014 10:55
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.
@dmvaldman
Copy link
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).

@MylesBorins
Copy link

hey @carlfahl can you move this over to famous/famous?

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