Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Physics
1/2
Push your simulations to new extremes with new maths/physics classes featuring double precision floating-point numbers.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2022.3.22f1
Compatible
Compatible
Compatible
Description

Vector3 and friends, but backed by doubles instead of floats.


This free library gives you new data types in Unity. They provide the same functionality as the Unity maths and physics libraries, but they are built using double precision floating-point numbers.


The classes are designed to be instantly familiar to Unity users. There are very few caveats or missing methods. The included classes and methods are fully listed with comprehensive documentation here.


Consider of course that doubling the precision will affect memory usage and performance. If there's something you think is missing, feel free to get in touch.


Robbo

Technical details

Double precision implementation of the following Unity classes:

  • Mathf
  • Vector2
  • Vector3
  • Vector4
  • Quaternion
  • Matrix4x4

Note that sometimes an exact match to the Unity equivalent wasn't possible. Furthermore, not every single method from these classes has been implemented. In general, this is only for methods whose double precision equivalent likely offers little practical benefit.


The complete details of any differences between the above classes and their Unity equivalents, including which methods are/aren't implemented, can be found here in the documentation:

https://robertjclose.github.io/DPML-documentation/


If you are looking for a double-precision version of a particular method, please check the documentation to ensure that it is supported by this package.


If a method is not supported, but you have found a good reason why it should be, please get in touch and I will do my best to add it!


Related keywords

Double Precision Maths Library

(not enough ratings)
3 users have favourite this asset
(3)
FREE
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR