◆ PressureTransferSystem()
essentials.Systems.BlockTransfer.PressureTransferSystem.PressureTransferSystem |
( |
float |
max = 5f , |
|
|
float |
speed = 0.25f |
|
) |
| |
15 :base(0.01f, 0.005f, max, speed)
17 this.InjectDependencies();
◆ GetBlockCoefficient()
virtual float essentials.Systems.BlockTransfer.PressureTransferSystem.GetBlockCoefficient |
( |
IBlock |
block | ) |
|
|
protectedvirtual |
MaterialType
The best-estimated material type of a block
Definition: MaterialType.cs:8
bool Solid
Is the block solid, that is, does it have collision
Definition: IBlock.cs:208
MaterialType MaterialType
Gets the type of the material.
Definition: IBlock.cs:465
◆ GetTransferCoefficient()
sealed override float essentials.Systems.BlockTransfer.PressureTransferSystem.GetTransferCoefficient |
( |
Vector3i |
pt | ) |
|
|
protectedvirtual |
Determines whether this instance can transfer to the specified block.
- Returns
- A number, between 0 and 1, that represents how conductive the block can be. 0 means non-conductive
- Parameters
-
Attribute: pt
;
Implements essentials.Systems.BlockTransfer.AbstractBlockTransfer.
22 var block = _world[pt];
virtual float GetBlockCoefficient(IBlock block)
Definition: PressureTransferSystem.cs:28
The documentation for this class was generated from the following file: