PerceptionSpaceTester


class PerceptionSpaceTester


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

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

HitTestResult?

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

hitTestResult

Added in 1.0.0-alpha16
var hitTestResultHitTestResult?

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.