Add Velocity
Adds velocity towards a specific direction.
Type ID: origins:add_velocity
Fields
Field | Type | Default | Description |
---|---|---|---|
x |
Float | 0 |
The amount of velocity to add on the x-axis. |
y |
Float | 0 |
The amount of velocity to add on the y-axis. |
z |
Float | 0 |
The amount of velocity to add on the z-axis. |
space |
String | "world" | The Space to perform the velocity addition in. |
set |
Boolean | false | If this is true, the action will act as a "set" velocity action, overriding the entity's current velocity instead of adding to it. |
Example
"entity_action": {
"type": "origins:add_velocity",
"y": 2
}
Launches the entity upwards into the air.