Skip to content

Create a Cube

Nathan Goodwin edited this page Oct 7, 2019 · 3 revisions

Creating a cube in Scorpion

You can create a cube using the spnCube() function.

Input parameters:

spnCube(material, clr, l, w, depth, x, y, z, wirefrm, objectName)

  • material - basic/lambert/phong - the type of material you want applied to your cube mesh
  • clr - color - the color of the material applied to your cube mesh
  • l - number - length of your cube mesh
  • w - number - width of your cube mesh
  • depth - number - depth of your cube mesh
  • x - number - the position of your cube mesh on the x axis
  • y - number - the position of your cube mesh on the y axis
  • z - number - the position of your cube mesh on the z axis
  • wirefrm - true/false - enable/disable wireframe
Clone this wiki locally