BoxShape

BoxShape

Shape of a euclidean box

Constructor

new BoxShape(location, sides, rounded)

Source:

Construction

Parameters:
Name Type Description
location Isometry | Point

Either an isometry, or a point representing the center of the ball

sides Vector3

the side lengths of the box

rounded number

if the box is rounded

Classes

BoxShape

Members

center :Point

Source:

Center of the box

Type:

hasUVMap

Source:

The UV coordinates corresponds to the spherical coordinates on the sphere... Not sure if that is the smartest choice

isBoxShape :boolean

Source:

Says that the object inherits from BoxShape

Type:
  • boolean

isGlobal :boolean

Source:

Says whether the shape is global. True if global, false otherwise.

Type:
  • boolean