fluid viscosity on phys sim

This commit is contained in:
minjaesong
2024-07-16 17:32:56 +09:00
parent 6399f609a9
commit e77aa0c33f
12 changed files with 248 additions and 213 deletions

View File

@@ -805,7 +805,7 @@ open class GameWorld(
data class FluidInfo(val type: ItemID = Fluid.NULL, val amount: Float = 0f) {
/** test if this fluid should be considered as one */
fun isFluid() = type != Fluid.NULL && amount >= WorldSimulator.FLUID_MIN_MASS
fun getProp(): Nothing = TODO()
fun getProp() = FluidCodex[type]
override fun toString() = "Fluid type: ${type}, amount: $amount"
}

View File

@@ -49,9 +49,7 @@ import kotlin.math.cos
* internal functions `getFormattedTime()`, `getShortTime()`, and `getFilenameTime()`
* - Preferred computerised date format is YearMonthDate. E.g. 01250407
* - Rest of the format (e.g. time intervals) follows ISO 8601 standard.
*
* (Check please:)
* - Equinox/Solstice always occur on 21st day of the month
* - Equinox/Solstice always occur on 15th day of the month
*
*
* Created by minjaesong on 2016-01-24.