Use swept Bokusho contact capsules
This commit is contained in:
parent
9888113282
commit
e9caacd781
3 changed files with 20 additions and 18 deletions
|
|
@ -292,14 +292,14 @@ public sealed class BokushoBrushSimulationTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public void PagePatchRadiiIncludeBristleFootprintAndSweepDistance()
|
||||
public void PagePatchRadiiKeepSweepLengthOutOfBristleFootprint()
|
||||
{
|
||||
var (tangentRadius, normalRadius) = BokushoBrushSimulation.PagePatchRadii(
|
||||
tangentRadius: 0.42f,
|
||||
normalRadius: 0.35f,
|
||||
sweepLength: 0.18f);
|
||||
|
||||
Assert.Equal(0.42f * BokushoBrushSimulation.PagePatchTangentRadiusScale + 0.18f * BokushoBrushSimulation.PagePatchSweepRadiusScale, tangentRadius, precision: 6);
|
||||
Assert.Equal(0.42f * BokushoBrushSimulation.PagePatchTangentRadiusScale, tangentRadius, precision: 6);
|
||||
Assert.Equal(0.35f * BokushoBrushSimulation.PagePatchNormalRadiusScale, normalRadius, precision: 6);
|
||||
|
||||
var tiny = BokushoBrushSimulation.PagePatchRadii(0.0f, 0.0f, 0.0f);
|
||||
|
|
|
|||
Loading…
Reference in a new issue