logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RailPoseSamplerTests

    Tests for RailPoseSampler, the pure piecewise-linear sampler that maps normalized progress over an ordered node list onto a world-space position and tangent-derived orientation.

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

    Constructors

    RailPoseSamplerTests()

    Declaration
    public RailPoseSamplerTests()

    Methods

    Sample_ApplyOrientationFalse_ReturnsIdentityRotation()

    Declaration
    public void Sample_ApplyOrientationFalse_ReturnsIdentityRotation()

    Sample_ApplyOrientationTrue_FacesAlongRailDirection()

    Declaration
    public void Sample_ApplyOrientationTrue_FacesAlongRailDirection()

    Sample_EmptyNodes_ReturnsIdentityPose()

    Declaration
    public void Sample_EmptyNodes_ReturnsIdentityPose()

    Sample_MultiSegment_PicksCorrectSegment()

    Declaration
    public void Sample_MultiSegment_PicksCorrectSegment()

    Sample_NullNodes_ReturnsIdentityPose()

    Declaration
    public void Sample_NullNodes_ReturnsIdentityPose()

    Sample_OverlappingNodes_FallsBackToIdentityRotation()

    Declaration
    public void Sample_OverlappingNodes_FallsBackToIdentityRotation()

    Sample_ProgressAboveOne_ClampsToEnd()

    Declaration
    public void Sample_ProgressAboveOne_ClampsToEnd()

    Sample_ProgressBelowZero_ClampsToStart()

    Declaration
    public void Sample_ProgressBelowZero_ClampsToStart()

    Sample_ProgressHalf_ReturnsMidpoint()

    Declaration
    public void Sample_ProgressHalf_ReturnsMidpoint()

    Sample_ProgressOne_ReturnsLastNode()

    Declaration
    public void Sample_ProgressOne_ReturnsLastNode()

    Sample_ProgressZero_ReturnsFirstNode()

    Declaration
    public void Sample_ProgressZero_ReturnsFirstNode()

    Sample_SingleNode_ReturnsThatNodeWithIdentityRotation()

    Declaration
    public void Sample_SingleNode_ReturnsThatNodeWithIdentityRotation()

    ToUnity_MapsNodeCoordinatesToVector3()

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