PerceptionSpaceTester
class PerceptionSpaceTester
A test-only data accessor for perception space that enables direct manipulation and inspection of its internal state.
Summary
Public properties |
|
|---|---|
HitTestResult? |
The |
Public functions
Public properties
hitTestResult
var hitTestResult: HitTestResult?
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.