https://github.com/mrdav30/fixedmathsharp-unity
FixedMathSharp-Unity: Integrates a high-precision, deterministic fixed-point math library into Unity. Ideal for simulations, games, and physics engines requiring reliable arithmetic without floating-point inaccuracies.
https://github.com/mrdav30/fixedmathsharp-unity
arithmetic deterministic dotnet fixed-point-arithmetic game-development high-performance high-precision math math-library physics-engine simulation trigonometry unity
Last synced: 9 days ago
JSON representation
FixedMathSharp-Unity: Integrates a high-precision, deterministic fixed-point math library into Unity. Ideal for simulations, games, and physics engines requiring reliable arithmetic without floating-point inaccuracies.
- Host: GitHub
- URL: https://github.com/mrdav30/fixedmathsharp-unity
- Owner: mrdav30
- License: mit
- Created: 2025-02-17T01:13:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-04-02T04:22:42.000Z (25 days ago)
- Last Synced: 2026-04-03T07:24:00.633Z (24 days ago)
- Topics: arithmetic, deterministic, dotnet, fixed-point-arithmetic, game-development, high-performance, high-precision, math, math-library, physics-engine, simulation, trigonometry, unity
- Language: C#
- Homepage:
- Size: 966 KB
- Stars: 42
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Notice: NOTICE
- Copyright: COPYRIGHT
Awesome Lists containing this project
README
# FixedMathSharp-Unity
Unity package host for FixedMathSharp.
This repository contains two installable Unity Package Manager variants:
- `com.mrdav30.fixedmathsharp`
- `com.mrdav30.fixedmathsharp.nomemorypack`
Both packages provide the same core deterministic fixed-point math library and Unity
interop helpers. The difference is whether the package includes `MemoryPack`.
## Which Package Should I Use?
### `com.mrdav30.fixedmathsharp`
Standard package with `MemoryPack` support enabled.
Install:
`https://github.com/mrdav30/FixedMathSharp-Unity.git?path=/com.mrdav30.fixedmathsharp`
Use it when:
- You want the default package.
- You want the built-in `MemoryPack` serialization path.
- Burst AOT compatibility is not your main concern.
### `com.mrdav30.fixedmathsharp.nomemorypack`
Package without `MemoryPack`.
Install:
`https://github.com/mrdav30/FixedMathSharp-Unity.git?path=/com.mrdav30.fixedmathsharp.nomemorypack`
Use it when:
- You use Unity Burst AOT.
- You want the safer choice for Burst-oriented builds.
- You want to avoid the `MemoryPack` dependency.
- You plan to use your own serialization stack.
## Why Two Variants?
If you use Unity Burst AOT, prefer the `NoMemoryPack` build. `MemoryPack`'s Unity
support is centered on IL2CPP via its .NET source-generator path, so the
no-MemoryPack variant is the safer choice for Burst AOT scenarios.
## What Both Packages Include
- Deterministic fixed-point math via `Fixed64`
- Core math, trigonometry, vectors, quaternions, and matrices
- Bounds and geometry helpers
- Unity transform, matrix, and bounds interop
- Editor helpers and sample content
## Notes
- This repository is currently intended for Git URL installation rather than an
official package registry.
- Each package has its own `README.md` with package-specific installation guidance.
- The underlying parent library lives here:
[FixedMathSharp](https://github.com/mrdav30/FixedMathSharp)