升级obi

This commit is contained in:
2026-01-22 22:08:21 +08:00
parent 120b8cda26
commit 20f14322bc
1067 changed files with 149894 additions and 29583 deletions

View File

@@ -36,6 +36,13 @@ namespace Obi
1 / scale);
}
public BurstAffineTransform Integrate(float4 linearVelocity, float4 angularVelocity, float dt)
{
return new BurstAffineTransform(BurstIntegration.IntegrateLinear(translation, linearVelocity, dt),
BurstIntegration.IntegrateAngular(rotation, angularVelocity, dt),
scale);
}
public BurstAffineTransform Interpolate(BurstAffineTransform other, float translationalMu, float rotationalMu, float scaleMu)
{
return new BurstAffineTransform(math.lerp(translation, other.translation, translationalMu),