Skip to content

Create a Floor

Nathan Goodwin edited this page Oct 7, 2019 · 1 revision

Creating a floor in Scorpion

You can create a floor using the spnFloor() function.

Input parameters:

spnFloor(material, width, height, x, y, z, triangles, clr, wirefrm, objectName)

  • material - basic/lambert/phong - the type of material you want applied to your floor plane
  • width - number - width of your floor plane
  • height - number - length of your floor plane
  • x - number - the position of your floor plane on the x axis
  • y - number - the position of your floor plane on the y axis
  • z - number - the position of your floor plane on the z axis
  • triangles - number - the number of triangles in your floor mesh
  • color - color - the color of the material applied to your floor plane
  • wirefrm - true/false - enable/disable wireframe
  • objectName - string - name of your floor plane
Clone this wiki locally