Skip to content

Add torque to bodies#6

Merged
JoeStrout merged 3 commits into
JoeStrout:mainfrom
pipe01:main
Aug 1, 2023
Merged

Add torque to bodies#6
JoeStrout merged 3 commits into
JoeStrout:mainfrom
pipe01:main

Conversation

@pipe01
Copy link
Copy Markdown
Contributor

@pipe01 pipe01 commented Aug 1, 2023

Bodies can now rotate as a result of collisions and friction between surfaces, hopefully fixes #1.

The bodies don't completely come to rest after laying down, but that is a whole another problem that I'll fix later.

Comment thread vector.ms
return self[0] * n[1] + self[1] * n[0]
else
return [-self[1] * n, self[0] * n]
end if
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused about what list.cross is doing. It doesn't look like a cross product. But, let's discuss on Discord.

@JoeStrout JoeStrout merged commit 58e0c44 into JoeStrout:main Aug 1, 2023
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.

Add simple collision response

2 participants