Skip to main content
POST
/
particle
/
create
create a particle emitter entity
curl --request POST \
  --url http://localhost:3917/particle/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "lifetime": 2,
  "max": 1000,
  "position": [
    0,
    2,
    0
  ],
  "rate": 50
}
'
{
  "entity_id": 9,
  "ok": true
}

Body

application/json

Spawn a ParticleEmitter: optional position [x,y,z] (default origin), rate particles/sec (default 50.0), lifetime seconds (default 2.0), and max particle cap (default 1000).

The body is of type any.

Response

200 - application/json

The spawned emitter entity id.