Table of Contents

Class MeshUtil

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public static class MeshUtil
Inheritance
MeshUtil
Inherited Members

Methods

ClearWindFlags(MeshData)

public static void ClearWindFlags(this MeshData sourceMesh)

Parameters

sourceMesh MeshData

SetWindFlag(MeshData, float, int)

Sets given flag if vertex y > WaveFlagMinY, otherwise it clears all wind mode bits

public static void SetWindFlag(this MeshData sourceMesh, float waveFlagMinY = 0.5625, int flag = 67108864)

Parameters

sourceMesh MeshData
waveFlagMinY float
flag int

Default is EnumWindBitModeMask.NormalWind

ToggleWindModeSetWindData(MeshData, int, bool, int)

public static void ToggleWindModeSetWindData(this MeshData sourceMesh, int leavesNoShearTileSide, bool enableWind, int groundOffsetTop)

Parameters

sourceMesh MeshData
leavesNoShearTileSide int
enableWind bool
groundOffsetTop int