Home Reference Source
import {DoubleSidedPlane} from 'infamous/src/legacy/DoubleSidedPlane.js'
public class | source

DoubleSidedPlane

Extends:

* → DoubleSidedPlane

A scenegraph tree who's two leaf nodes are Plane instances facing opposite directions. For the purposes of these docs, in a brand new app with only a single DoubleSidedPlane added to the context, and having no rotation, "plane1" faces you and "plane2" faces away.

Constructor Summary

Public Constructor
public

constructor(initialOptions: Object)

Creates a new DoubleSidedPlane who's initialOptions get passed to both Plane instances, as well as this DoubleSidedPlane's parent Molecule constructor.

Member Summary

Public Members
public

children: *[]

public

plane1: *

public

plane2: *

Method Summary

Public Methods
public

Get the content of the famous/src/core/Surface of each Plane.

public

setContent(content: Array)

Set the content of both Plane instances.

Public Constructors

public constructor(initialOptions: Object) source

Creates a new DoubleSidedPlane who's initialOptions get passed to both Plane instances, as well as this DoubleSidedPlane's parent Molecule constructor.

Params:

NameTypeAttributeDescription
initialOptions Object

The options to initiate the DoubleSidedPlane with.

Public Members

public children: *[] source

public plane1: * source

public plane2: * source

Public Methods

public getContent(): Array source

Get the content of the famous/src/core/Surface of each Plane.

Return:

Array

An array containing two items, the content of each Plane. The first item is from "plane1".

public setContent(content: Array) source

Set the content of both Plane instances.

Params:

NameTypeAttributeDescription
content Array

An array of content, one item per Plane. The first item is for "plane1".