PolyFactory:Fan: Difference between revisions
No edit summary |
Added formula for fan speed |
||
| Line 14: | Line 14: | ||
}} | }} | ||
Fan is a rotational block added by [[Mod:PolyFactory|PolyFactory]]. It can be placed in any direction, similar to a dropper. When connected and powered with rotational force, it will push any entity (including the player) in direction it's facing with force proportional to distance from the fan and the speed it's rotating. By using the [[PolyFactory:Wrench|Wrench]], it can be rotated or set to "reverse" mode, which makes it pull entities instead. | Fan is a rotational block added by [[Mod:PolyFactory|PolyFactory]]. It can be placed in any direction, similar to a dropper. When connected and powered with rotational force, it will push any entity (including the player) in direction it's facing with force proportional to distance from the fan, distance from fan to a wall, and the speed it's rotating. By using the [[PolyFactory:Wrench|Wrench]], it can be rotated or set to "reverse" mode, which makes it pull entities instead. | ||
=== Movement === | |||
Fans will move an entity direction it's facing with force proportional to distance from the fan, using this formula, where ''d'' is the distance from the fan to the entity, ''l'' is the length between the fan and the closest fan-preventing block, ''s'' is the rotation speed, and ''m'' is the movement multiplier<ref>[[PolyFactory:Stable Ground]] sets this to 0, otherwise 1</ref>: | |||
push = max(s * (l - d) / (l + 1) * 0.98 ^ l * m, 0); | |||
=== Obtaining === | === Obtaining === | ||