rmp::behavior::Projectile
struct Projectile
Travels the way you pushed it and is discarded when it leaves or hits.
Added to an object with add<rmp::behavior::Projectile>(); the framework calls its _ready, _collision, _update with the object it is on.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
speed | float | 0 | 0 = keep whatever velocity it was given |
destroy_on_hit | bool | true | Discarded on touching any object it collides with |
destroy_on_wall | bool | false | Discarded when its centre is in a solid map cell |