Invert (Bi-Entity Action Type)

Swaps the context of the target entity and the actor entity.

Swaps the context of the target entity and the actor entity.

Type ID: apoli:invert

Fields

FieldTypeDefaultDescription
actionBi-entity Action TypeThe bi-entity action to execute which will have its ‘target’ and ‘actor’ contexts swapped.

Examples

"bientity_action": {
    "type": "apoli:invert",
    "action": {
	    "type": "apoli:add_velocity",
	    "z": -2
    }
}

This example will “pull” the actor entity to the target entity.