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