Class SharedWater
Class used to create bodies of water on the map
Assembly: SlipeShared.dll
Syntax
public class SharedWater : PhysicalElement
Constructors
|
Improve this Doc
View Source
SharedWater(Vector3, Vector3, Vector3, Boolean)
Creates a body of water from 3 corners. Order: SouthWest -> SouthEast -> NorthWest
Declaration
public SharedWater(Vector3 southWest, Vector3 southEast, Vector3 northWest, bool shallow = false)
Parameters
|
Improve this Doc
View Source
SharedWater(Vector3, Vector3, Vector3, Vector3, Boolean)
Creates a body of water from 4 corners. Order: SouthWest -> SouthEast -> NorthWest -> NorthEast
Declaration
public SharedWater(Vector3 southWest, Vector3 southEast, Vector3 northWest, Vector3 northEast, bool shallow = false)
Parameters
Properties
|
Improve this Doc
View Source
Level
Get the level of this water element
Declaration
public float Level { set; }
Property Value
Methods
|
Improve this Doc
View Source
GetVertexPosition(Int32)
Gets the world position of a vertex (i.e. corner) of a water area. Follow the order SW, SE, NW, NE
Declaration
public Vector3 GetVertexPosition(int vertexIndex)
Parameters
Type |
Name |
Description |
Int32 |
vertexIndex |
|
Returns
|
Improve this Doc
View Source
SetVertexPosition(Int32, Vector3)
Sets the water position of a specific index follow the order SW, SE, NW, NE
Declaration
public bool SetVertexPosition(int vertexIndex, Vector3 position)
Parameters
Returns