Physics
< Modding | Projectile (modding) | Projectile ComponentsModding/Projectile/Components/Physics
Jump to navigation
Jump to search
Components
Manages the physics of a bullet.
Used by most projectiles.
This is an abstract class. It exists to be inherited by other components, sharing common functionality with them.
Inherited by :
A projectile can only have one Physics component, so choose between those above.
Parameters
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
LinearDamping | float | - | Yes | - | Acts like drag, slowing down the projectile. Higher values for greater effect. Used by mine .
|
AngularDamping | float | - | Yes | - | Presumably slows the rotation speed over time, like LinearDamping but for turning. Used by mine .
|
CollidesWithBullets | bool | - | - | - | Presumably, if true, the projectile can hit bullets.
However, this is field is not set by |
FrameOfReferenceDuration | float | - | Yes | positive infinity | See FrameOfReference. |
RandomExtraSpeed | range<float>
meaning : [float, float] |
- | Yes | - | Adds a random amount of speed to the projectile when spawned.
Good for giving some variance to projectile launches so they don't look too synchronized. |
Example mods
The missiles in "Micromissile Launcher" by Dj0z use all of these parameters but one.