Skip to content

Movement components documentation

Peter Crew edited this page Jan 15, 2019 · 1 revision

This page covers all of the movement components that can be added to an entity (along with an AI) in order to give it movement.


BeeMovement

The movement type used by bees. This allows the entity to hover around in the air.

Constructor

The constructor takes no arguments, e.g. new BeeMovement().


BirdMovement

The movement type used by birds. This allows the entity to fly around and land on perches (if it has the correct AI and percher components).

Constructor

The constructor takes no arguments, e.g. new BirdMovement().


FlyMovement

A standard flying movement that allows the entity to fly around in the air but not land on perches.

Constructor

The constructor takes no arguments, e.g. new FlyMovement().


FlouncerMovement

The rocking movement type used by animals such as goats and wild boar.

Constructor

The constructor takes a single JavaScript object with the following properties:

Name Type Description
speed float The speed of the entity's movement.
rotationSpeed float The speed of the entity's movement whilst rotating.
bouncePower float The power of the entity's jump.
bounceRotation float How much the entity rotates when bouncing around.
height float The standard height of each jump.

FrogMovement

The bouncing movement type used by frogs to jump around.

Constructor

The constructor takes a single JavaScript object with the following properties:

Name Type Description
speed float The speed of the entity's movement.
bouncePower float The power of the entity's jump.
waitTime float The average number of seconds that the entity waits between jumps.
bounciness float How bouncy the entity is.

WaddleMovement

The waddling movement that animals such as ducks use to walk around.

Constructor

The constructor takes a single JavaScript object with the following properties:

Name Type Description
speed float The speed of the entity's movement.
rotationSpeed float The speed of the entity's movement whilst rotating.
bouncePower float The power of the entity's jump.

GallopMovement

The galloping movement that animals such as horses use to run around.

Constructor

The constructor takes a single JavaScript object with the following properties:

Name Type Description
speed float The speed of the entity's movement.
bouncePower float The power of the entity's jump.
upRotationSpeed float The speed of the entity's movement whilst rotating upwards to jump.
gravityFactor float A measure of how much gravity affects the entity whilst in the air.
frontZ float[] A list of the front Z-coordinates for each model of the entity.
backZ float[] A list of the back Z-coordinates for each model of the entity.

RabbitMovement

The hopping movement that rabbits use to move around.

Constructor

The constructor takes a single JavaScript object with the following properties:

Name Type Description
speed float The speed of the entity's movement.
bouncePower float The power of the entity's jump.
upRotationSpeed float The speed of the entity's movement whilst rotating upwards to jump.
downRotationSpeed float The speed of the entity's movement whilst rotating downwards after jump.
frontZ float[] A list of the front Z-coordinates for each model of the entity.
backZ float[] A list of the back Z-coordinates for each model of the entity.
Clone this wiki locally