(Previously BoundingBoxSignal
, and merged with Bounds2D
)
The Box2DSignal
class monitors 2D bounding box value.
Property | Description |
---|---|
center | (get) center: Vec2Signal Represents the center of the bounding box, in normalized screen space units. |
height | (get) height: ScalarSignal Represents the height of the bounding box, in normalized screen space units. |
width | (get) width: ScalarSignal Represents the width of the bounding box, in normalized screen space units. |
x | (get) x: ScalarSignal Represents the X-position of top left corner of the bounding box, in normalized screen space units. |
y | (get) y: ScalarSignal Represents the Y-position of top left corner of the bounding box, in normalized screen space units. |
Method | Description |
---|---|
history | history(framesCount: number): SignalHistory<Box2D> Returns an object used to access signal values from past frames. The amount of frames tracked is customizable via framesCount parameter.Historical signal values are going to be initialized with signal value at call time or using initialValues if provided. |