Space Engineers
|
Public Member Functions | |
MyPlanetMaterialPlacementRule () | |
MyPlanetMaterialPlacementRule (MyPlanetMaterialPlacementRule copyFrom) | |
bool | Check (float height, float latitude, float slope) |
object | Clone () |
Public Member Functions inherited from VRage.Game.MyPlanetMaterialDefinition | |
object | Clone () |
Public Attributes | |
SerializableRange | Height = new SerializableRange(0, 1) |
SymetricSerializableRange | Latitude = new SymetricSerializableRange(-90, 90) |
SerializableRange | Longitude = new SerializableRange(-180, 180) |
SerializableRange | Slope = new SerializableRange(0, 90) |
Public Attributes inherited from VRage.Game.MyPlanetMaterialDefinition | |
string | Material |
byte | Value = 0 |
float | MaxDepth = 1.0f |
MyPlanetMaterialLayer[] | Layers |
Properties | |
override bool | IsRule [get] |
Properties inherited from VRage.Game.MyPlanetMaterialDefinition | |
virtual bool | IsRule [get] |
bool | HasLayers [get] |
string | FirstOrDefault [get] |
Important!
Due to the geometry in question the slope is stored as the cosine (used in dot product).
Meanwhile the dot product for the latitude yields the cosine of the modulus of the compliment of our angle. This means after the maths are done that what we have is the sine, so the latitude is stored as the sine.
Definition at line 89 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
|
inline |
Definition at line 105 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
|
inline |
Definition at line 109 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
|
inline |
Check that a rule matches terrain properties.
height | Height ration to the height map. |
latitude | Latitude cosine |
slope | Surface dominant angle sine. |
Definition at line 131 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
|
inline |
Definition at line 137 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
SerializableRange VRage.Game.MyPlanetMaterialPlacementRule.Height = new SerializableRange(0, 1) |
Definition at line 92 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
SymetricSerializableRange VRage.Game.MyPlanetMaterialPlacementRule.Latitude = new SymetricSerializableRange(-90, 90) |
Definition at line 95 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
SerializableRange VRage.Game.MyPlanetMaterialPlacementRule.Longitude = new SerializableRange(-180, 180) |
Definition at line 98 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
SerializableRange VRage.Game.MyPlanetMaterialPlacementRule.Slope = new SerializableRange(0, 90) |
Definition at line 101 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.
|
get |
Definition at line 103 of file MyObjectBuilder_PlanetGeneratorDefinition.cs.