OpenXRay / OpenXRay/xray-16

Jolt Physics

Open
#2,139 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement Physics
Dominant language
C++
Stars
3.6k
Forks
536
Avg merge
6d 1h
Merged PRs (30d)
3

Description

Current physics engine and world representation:

  • Original ODE 0.5 with original modifications made by GSC, with few changes merged from ODE 0.6 by OpenXRay.
    • Used as a backend by xrPhysics, which provides abstract physics interface.
  • OPCODE 1.2 with changes by OpenXRay contributors to support caching.
    • Used as a backend by xrCDB, which provides abstract collision detection interface.

Proposed better alternative:

  • Jolt Physics instead of both ODE and OPCODE, unified physics world representation.
  • xrCDB is a candidate for removal, while it's functionality is to be replaced or moved to xrPhysics module.

Reasoning:

  • ODE 0.5 is not made for x64, nor for multithreading.
  • OPCODE is faster than ODE, but Jolt possible can be even faster, removing the need for separate collision detection module.
  • Jolt supports x64 and has been made with multithreading in mind, and it also provides many more advanced features.

Possible implementation plan:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by tracing the xrPhysics and xrCDB entry points and their ODE and OPCODE backends, then evaluate the proposed Jolt migration plan; done means both physics paths are replaced or consolidated and the game works properly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.