rattle-parent
0.1.1-SNAPSHOT
jvm
rattle-common
/
io.github.aecsocket.rattle.world
/
TerrainCollision
/
Settings
Settings
@
ConfigSerializable
data
class
Settings
(
val
enabled
:
Boolean
=
true
,
val
removeIn
:
Double
=
1.0
,
val
expandVelocity
:
Double
=
0.1
,
val
expandConstant
:
Double
=
1.0
,
val
layers
:
TerrainCollision.Settings.Layers
=
Layers()
)
Members
Constructors
Settings
Link copied to clipboard
constructor
(
enabled
:
Boolean
=
true
,
removeIn
:
Double
=
1.0
,
expandVelocity
:
Double
=
0.1
,
expandConstant
:
Double
=
1.0
,
layers
:
TerrainCollision.Settings.Layers
=
Layers()
)
Types
Layers
Link copied to clipboard
@
ConfigSerializable
data
class
Layers
(
val
all
:
MutableMap
<
String
,
TerrainCollision.Layer
>
=
mutableMapOf( "solid" to Layer.Solid(PhysicsMaterial(friction = 0.4, restitution = 0.2)), "fluid" to Layer.Fluid(density = 1.0), )
,
val
defaultSolid
:
String
=
"solid"
,
val
defaultFluid
:
String
=
"fluid"
,
val
byBlock
:
MutableMap
<
Key
,
String
>
=
HashMap()
)
Properties
enabled
Link copied to clipboard
val
enabled
:
Boolean
=
true
expand
Constant
Link copied to clipboard
val
expandConstant
:
Double
=
1.0
expand
Velocity
Link copied to clipboard
val
expandVelocity
:
Double
=
0.1
layers
Link copied to clipboard
val
layers
:
TerrainCollision.Settings.Layers
remove
In
Link copied to clipboard
val
removeIn
:
Double
=
1.0