Skip to content
On this page

Class: CollisionIterator

WebSG.CollisionIterator

An iterator for collisions.

Table of contents

Constructors

Methods

Constructors

constructor

new CollisionIterator()

Methods

[iterator]

[iterator](): CollisionIterator

Returns

CollisionIterator

Defined in

websg.d.ts:954


next

next(): Object

Returns the next collision in the iterator.

Returns

Object

NameType
doneboolean
valueCollision

Defined in

websg.d.ts:953