mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-21 02:41:17 +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:
parent
140a809c40
commit
77a18d0aea
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user