Group Group Group Group Group Group Group Group Group

Physics Engine Recommendation

#1

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

#2

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

#3

@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:!

#4

Objective-C can make use of C++

#5

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