Table of Contents

Class PlotFoundationMesh

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Builds a plot's look as one mesh with four submeshes: wood, rope, stone, board.

public static class PlotFoundationMesh
Inheritance
PlotFoundationMesh
Inherited Members

Remarks

Pure apart from the UnityEngine.Mesh it fills, so the layout is the same on every client. Positions are local to the post; the lot's edges are found from the plot's world-axis centre offset turned into the post's frame, because the post is turned to face its street while the plot volume is not.

Fields

StakeInset

The lot's corners inset this far, metres, so the stakes stand inside it.

public const float StakeInset = 0.4

Field Value

float

Methods

Build(PlotState, Vector2, Vector3, Quaternion)

public static Mesh Build(PlotState state, Vector2 size, Vector3 centreOffset, Quaternion postRotation)

Parameters

state PlotState
size Vector2
centreOffset Vector3
postRotation Quaternion

Returns

Mesh