vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::SolverMath::SoftConstraint Struct Reference

The three numbers that make a correction a stiff, damped spring. More...

#include <solver_math.h>

Detailed Description

The three numbers that make a correction a stiff, damped spring.

Catto's soft-constraint coefficients. biasRate turns position error into closing velocity, massScale softens its impulse, impulseScale leaks the accumulated impulse, so the correction settles where rigid Baumgarte rings. The default is no spring, as an unbiased pass solves.


The documentation for this struct was generated from the following file: