NgtArgs
There are entities in THREE.js ecosystem that requires Constructor Arguments to be passed in like OrbitControls
.
Or there are entities that require reconstructing when Constructor Arguments changed like the Geometries.
To achieve this, Angular Three provides the NgtArgs
structural directive.
When boxArgs
changes, NgtArgs
will destroy the current BoxGeometry
instance and reconstruct a new one.
NgtArgs
accepts an array of Constructor Arguments that the entity accepts.
Please consult THREE.js documentation for details about the entities and their arguments.