Skip to content

Instantly share code, notes, and snippets.

@jagenjo
Last active January 23, 2024 17:20
Show Gist options
  • Save jagenjo/5c0815218dfce06daca445acaa507418 to your computer and use it in GitHub Desktop.
Save jagenjo/5c0815218dfce06daca445acaa507418 to your computer and use it in GitHub Desktop.
Setting up JOLT Physics from C++

Setting up JOLT Physics from C++

I decided to use JOLT Physics some weeks ago inside my games engine and the process has been slightly painful so here is my findings about how to compile it inside your project.

Requirements

  • cmake: used to create the project
  • visual studio 17 or later (in my case)

Your C++ Project requirements

Your code must be compiled following the next rules:

  • x64 (no 32 bits version of Jolt provided AFAIK)
  • must be /MT or /MTd, not MD
  • should use c++17 or later
  • There are lots of flags that must be included to make it work

Steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment