| Name | Type | Description |
|---|---|---|
json |
Object | optional Json object describing the wall |
Properties:
| Name | Type | Description |
|---|---|---|
id |
number | The picture ID of the sprite |
kind |
SpriteWallKind | The kind of wall (border or not) |
Extends
Methods
-
read (json) overrides
-
Read the JSON associated to the sprite wall
Name Type Description jsonObject Json object describing the wall -
Update the geometry of a group of sprite walls with the same material
Name Type Description geometryTHREE.Geometry The geometry positionArray.<number> The json position widthnumber The total width of the texture heightnumber The total height of the texture countnumber The faces count Returns:
Type Description Array.<any> -
Scale the vertices correctly
Name Type Description vecATHREE.Vector3 The A vertex to rotate vecBTHREE.Vector3 The B vertex to rotate vecCTHREE.Vector3 The C vertex to rotate vecDTHREE.Vector3 The D vertex to rotate centerTHREE.Vector3 The center to rotate around positionArray.<number> The json position sizeTHREE.Vector3 The scale size kindElementMapKind The element map kind