Class TesseraInitialConstraintBuilder
Inheritance
TesseraInitialConstraintBuilder
Assembly: cs.temp.dll.dll
Syntax
public class TesseraInitialConstraintBuilder
Methods
GetInitialConstraint(GameObject)
Gets the initial constraint for a given game object.
It checks for a TesseraPinned, TesseraTile or TesseraVolume component.
Declaration
public ITesseraInitialConstraint GetInitialConstraint(GameObject gameObject)
Parameters
Type |
Name |
Description |
GameObject |
gameObject |
|
Returns
GetInitialConstraint(TesseraPinned)
Gets the initial constraint from a given pin at a given position.
It should be aligned with the grid defined by this generator.
Declaration
public ITesseraInitialConstraint GetInitialConstraint(TesseraPinned pin)
Parameters
Returns
GetInitialConstraint(TesseraPinned, Matrix4x4)
Gets the initial constraint from a given pin at a given position.
It should be aligned with the grid defined by this generator.
Declaration
public ITesseraInitialConstraint GetInitialConstraint(TesseraPinned pin, Matrix4x4 localToWorldMatrix)
Parameters
Type |
Name |
Description |
TesseraPinned |
pin |
The pin to inspect
|
Matrix4x4 |
localToWorldMatrix |
The matrix indicating the position and rotation of the tile
|
Returns
GetInitialConstraint(TesseraTileBase)
Gets the initial constraint from a given tile.
The tile should be aligned with the grid defined by this generator.
Declaration
public TesseraInitialConstraint GetInitialConstraint(TesseraTileBase tile)
Parameters
Returns
GetInitialConstraint(TesseraTileBase, Matrix4x4)
Gets the initial constraint from a given tile at a given position.
The tile should be aligned with the grid defined by this generator.
Declaration
public TesseraInitialConstraint GetInitialConstraint(TesseraTileBase tile, Matrix4x4 localToWorldMatrix)
Parameters
Type |
Name |
Description |
TesseraTileBase |
tile |
The tile to inspect
|
Matrix4x4 |
localToWorldMatrix |
The matrix indicating the position and rotation of the tile
|
Returns
GetInitialConstraint(TesseraTileInstance, PinType)
Converts a TesseraTileInstance to a ITesseraInitialConstraint.
This allows you to easily use the output of one generation for later generations
Declaration
public ITesseraInitialConstraint GetInitialConstraint(TesseraTileInstance tileInstance, PinType pinType = PinType.Pin)
Parameters
Returns
GetInitialConstraint(TesseraVolume)
Gets the initial constraint from a given tile.
The tile should be aligned with the grid defined by this generator.
Declaration
public TesseraVolumeFilter GetInitialConstraint(TesseraVolume volume)
Parameters
Returns
SearchInitialConstraints()
Searches the scene for all applicable game objects and converts them to ITesseraInitialConstraint
Declaration
public List<ITesseraInitialConstraint> SearchInitialConstraints()
Returns