PerceptionSpaceTester


public final class PerceptionSpaceTester


A test-only data accessor for perception space that enables direct manipulation and inspection of its internal state.

Summary

Public methods

boolean
equals(Object other)
final HitTestResult

The HitTestResult to be returned by subsequent calls to PerceptionSpace.hitTest.

int
final void

The HitTestResult to be returned by subsequent calls to PerceptionSpace.hitTest.

Public methods

equals

public boolean equals(Object other)

getHitTestResult

Added in 1.0.0-alpha16
public final HitTestResult getHitTestResult()

The HitTestResult to be returned by subsequent calls to PerceptionSpace.hitTest.

This property is typically used for testing or simulation purposes, allowing you to define the outcome of hit tests performed within the PerceptionSpace.

Setting a non-null value describes the location and normal of the closest object hit, relative to the origin of the hit test ray. Set to null to simulate the hit test not intersecting with any objects.

hashCode

public int hashCode()

setHitTestResult

Added in 1.0.0-alpha16
public final void setHitTestResult(HitTestResult value)

The HitTestResult to be returned by subsequent calls to PerceptionSpace.hitTest.

This property is typically used for testing or simulation purposes, allowing you to define the outcome of hit tests performed within the PerceptionSpace.

Setting a non-null value describes the location and normal of the closest object hit, relative to the origin of the hit test ray. Set to null to simulate the hit test not intersecting with any objects.