Mover

platypus.components. Mover

Methods

addMover(mover) → {Motion}

This method adds a mover to the entity in the form of a "Motion" component definition.

Source:
Parameters:
Name Type Description
mover Object

For motion definition properties, see the "Motion" component.

Returns:
Type:
Motion

motion

removeMover(motion)

This method removes a mover from the entity.

Source:
Parameters:
Name Type Description
motion Motion