Physics Engine Recommendation

I’m really enjoying this book, Im at chapter 13 now. I have skimmed ahead and couldn’t find any reference for a physics engine.

What would you recommend and can you share some references.

Thank you in advance
–MJ

1 Like

@caroline Can you please help with this when you get a chance? Thank you - much appreciated! :]

@mjeragh - I’m glad you’re enjoying it :blush:!

I haven’t seen a Swift / Metal implementation of a physics engine and haven’t done one myself yet.

SceneKit has a built in physics engine, but that’s not really interoperable with the Metal code in the book.

Bullet is C++, and I have no idea how to integrate it with Swift.

I wouldn’t have said this is an easy task.

One of my favourite books “Game Coding Complete” by Mike McShaffrey says about physics engines: This stuff is devilishly difficult and is probably one of the most challenging areas of game programming

If you come up with a solution, please let us know :smile:!

Objective-C can make use of C++

Thank you, @tom01. Yes- if @mjeragh has experience with Objective C and OpenGL, this really old tutorial might help: https://www.raywenderlich.com/2606-bullet-physics-tutorial-getting-started

I haven’t had time to go through it myself though

This really is the best book ever.

1 Like

I’m really happy you’re still enjoying it and finding it useful :blush: