Skip to content

GroundNode

Overview

Node that can be used to represent the ground.

@author John Blanco @author Sam Reid (PhET Interactive Simulations)

Class GroundNode

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

Constructor

new GroundNode( x : number, y : number, width : number, height : number, gradientEndDepth : number, providedOptions? : GroundNodeOptions )

Instance Methods

Type GroundNodeOptions

import type { GroundNodeOptions } from 'scenerystack/scenery-phet';

Source Code

See the source for GroundNode.ts in the scenery-phet repository.