KlakMath

December 5, 2025 ยท View on GitHub

KlakMath is an extension library for the Unity Mathematics package. It adds tweening, noise, hashing, and rotation helpers for Unity projects.

Features

Interpolation

gif

  • CdsTween: critically damped spring interpolation
  • ExpTween: exponential interpolation

Noise

gif gif gif

  • Noise: 1D gradient noise

Pseudo-random number generator

Screenshot

  • XXHash: fast hash function usable as a PRNG

Rotation

  • FromTo: rotation between two vectors

How to Install

You can install the KlakMath package (jp.keijiro.klak.math) via the "Keijiro" scoped registry using the Unity Package Manager. To add the registry to your project, follow these instructions.