Skip to content

BoxNode

Overview

Pseudo-3D representation of a box, using parallelograms. Only the three visible faces are shown: top, front, right side. The top and right-side faces are foreshortened to give the illusion of distance between front and back planes. Origin is at the center of the top face.

@author Chris Malley (PixelZoom, Inc.) @author Jesse Greenberg (PhET Interactive Simulations) @author Andrew Adare (PhET Interactive Simulations)

Class BoxNode

import { BoxNode } from 'scenerystack/scenery-phet';

Constructor

new BoxNode( transform, color, size, options )

Instance Methods

updateShapes()

@private - update the shapes after the size has been set

setBoxSize( size )

Set the size of this box. @param {Bounds3} size @public

Source Code

See the source for BoxNode.js in the scenery-phet repository.