MForce

mForce

Description of the force mechanic, where the player will be pushed in a certain direction.

Description

The force will push the player in a direction when he is in a certain place, and make him slower when going against it and faster when going with it.

Dimensions
 * Force can affect everything. Humans, animals, objects with motion etc. can all lose traction.
 * The area needs to be changeable for each specific resistance area, and therefore take up (x,x) blocks.


 * A Force area can be placed anywhere, both in air and inside other blocks.

<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:bold;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Functionality:
 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">The resistance mechanic is done by defining a resistance area, a direction, and a force strength.


 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">The area is defined in the “Dimensions” part.
 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">The direction can be any direction in 360 degrees.
 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">The force strength defines how much strength the force area is pushing with (in the direction)


 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">The force strength is a value between 0-1.


 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">1 will cause any object to accelerate by such a force that it will stop moving.
 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">0 will do nothing to any object.
 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">These calculations will be physics based and how much the force pushes an object depends on the object.


 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">The objects within the force area will be pushed with the force strength in the direction constantly.


 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">If the player is moving against the direction they are resisted with the force strength, slowing their speed down.
 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">If the player is moving with the direction, they are aided by the force strength, increasing their speed.

<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:bold;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Sound:
 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">The force itself does not have a sound.

<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:bold;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Animation


 * <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;color:#ffffff;font-weight:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Animation is dependent on object being pushed.