Jump to content

Recommended physics tutorial or library?


ikaruga
 Share

Recommended Posts

Use case: simple particle simulation with collision detection. Think billiards.

For what I'm doing i prefer doing it myself. In fact i have done this in the past. So I'm looking for a refresher tutorial.

Would also consider using a physics library. The only concern there is bundle size. It's for a web app so i need to keep download size to a minimum.

Link to comment
Share on other sites

7 hours ago, threader said:

If you're not going for super-realistic collisions I have a nice collision handling library out there written in TypeScript called `bump-ts`: https://www.npmjs.com/package/bump-ts.

Nice. As per bundlephobia, its 4kb.

The use case is literally something similar to billiards. Objects need to push other objects in a somewhat realistic fashion, following the laws of physics. It doesn't need to be super realistic though. Is your library appropriate?

Here's what i mean: balls need to bounce off each other as well as the walls. Friction and gravity should be supported. 

Suggestion: an examples sectiion would help a ton

Edited by ikaruga
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...