logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityPhysicsOcclusionProbeGradedTests

    Real-physics tests for the graded path of Serenity.AudioPlayer.Infrastructure.Services.UnityPhysicsOcclusionProbe: a wall away from both ends is graded by the detour around its bounds with one linecast, and a full detour length of zero or less keeps the all-or-nothing answer. The expected amounts follow the log curve at 12 m: a detour of x metres reads ln(1 + x / 1.2) / ln(11).

    Inheritance
    object
    UnityPhysicsOcclusionProbeGradedTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityAudioPlayer.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityPhysicsOcclusionProbeGradedTests

    Constructors

    UnityPhysicsOcclusionProbeGradedTests()

    Declaration
    public UnityPhysicsOcclusionProbeGradedTests()

    Methods

    Occlusion_AnyOutcome_ForgetsTheFallbackMemory()

    Declaration
    public void Occlusion_AnyOutcome_ForgetsTheFallbackMemory()

    Occlusion_BinaryTerrainHit_NoFallbackOneCast()

    Declaration
    public void Occlusion_BinaryTerrainHit_NoFallbackOneCast()

    Occlusion_GradedColliderEnclosingSource_IsNotAWall()

    Declaration
    public void Occlusion_GradedColliderEnclosingSource_IsNotAWall()

    Occlusion_GradedNothingBetween_ZeroWithOneCast()

    Declaration
    public void Occlusion_GradedNothingBetween_ZeroWithOneCast()

    Occlusion_GradedPillar_GoesAroundItsSideAndStaysNearlyOpen()

    Declaration
    public void Occlusion_GradedPillar_GoesAroundItsSideAndStaysNearlyOpen()

    Occlusion_GradedWallOfGrowingHeight_FollowsTheDetourOverIt(float, float)

    Declaration
    public void Occlusion_GradedWallOfGrowingHeight_FollowsTheDetourOverIt(float wallTop, float expectedAmount)
    Parameters
    Type Name Description
    float wallTop
    float expectedAmount

    Occlusion_GradedWallTooWideAndTallToGoAround_IsFullyOccluded()

    Declaration
    public void Occlusion_GradedWallTooWideAndTallToGoAround_IsFullyOccluded()

    Occlusion_GradedWall_AllocatesNothing()

    Declaration
    public void Occlusion_GradedWall_AllocatesNothing()

    Occlusion_NegativeFullLength_OneCastAmountOne()

    Declaration
    public void Occlusion_NegativeFullLength_OneCastAmountOne()

    Occlusion_ZeroFullLength_HitIsOneAndOpenIsZero()

    Declaration
    public void Occlusion_ZeroFullLength_HitIsOneAndOpenIsZero()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()
    In this article
    © 2026 Serenity. All Rights Reserved