PolyFactory:Fan: Difference between revisions
Added formula for fan speed |
m Fixed docs on fomula |
||
| Line 17: | Line 17: | ||
=== Movement === | === 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>: | 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<ref>Up until the length is not less than speed * 20 * 0.98 ^ length</ref>, ''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); | push = max(s * (l - d) / (l + 1) * 0.98 ^ l * m, 0); | ||