mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Block: add documentation for getFrictionFactor()
has no one ever questioned the fact that a higher _friction_ factor _reduces_ the block's friction???
This commit is contained in:
@@ -282,6 +282,12 @@ class Block{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a multiplier applied to the velocity of entities moving on top of this block. A higher value will make
|
||||||
|
* the block more slippery (like ice).
|
||||||
|
*
|
||||||
|
* @return float 0.0-1.0
|
||||||
|
*/
|
||||||
public function getFrictionFactor() : float{
|
public function getFrictionFactor() : float{
|
||||||
return 0.6;
|
return 0.6;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user