Class GLGE.Mesh
Creates a new mesh to associate with a mesh
Defined in: glge.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
addBoneWeights(boneName, jsArray)
Sets the bone weights for a perticular bone
|
|
setFaces(jsArray)
Sets the faces for this mesh
|
|
setNormals(jsArray)
Sets the normals of the verticies
|
|
setPositions(jsArray)
Sets the positions of the verticies
|
|
setUV(jsArray)
Set the UV coord for the first UV layer
|
|
setUV2(jsArray)
Set the UV coord for the second UV layer
|
Method Detail
addBoneWeights(boneName, jsArray)
Sets the bone weights for a perticular bone
- Parameters:
- {String} boneName
- The name of the bone
- {Number[]} jsArray
- The 1 dimentional array of weights
setFaces(jsArray)
Sets the faces for this mesh
- Parameters:
- {Number[]} jsArray
- The 1 dimentional array of normals
setNormals(jsArray)
Sets the normals of the verticies
- Parameters:
- {Number[]} jsArray
- The 1 dimentional array of normals
setPositions(jsArray)
Sets the positions of the verticies
- Parameters:
- {Number[]} jsArray
- The 1 dimentional array of positions
setUV(jsArray)
Set the UV coord for the first UV layer
- Parameters:
- {Number[]} jsArray
- the UV coords in a 1 dimentional array
setUV2(jsArray)
Set the UV coord for the second UV layer
- Parameters:
- {Number[]} jsArray
- the UV coords in a 1 dimentional array