cturtle/armor
include "cturtle/armor";
Types
WorldArmorGlow
Object
| Field | Type | Writable | Description |
|---|---|---|---|
color | WorldColor3 | yes | |
amount | float | yes | |
reach | float | yes | |
scorch | float | yes | |
decay | float | yes | |
damageTexture | float | yes | |
heatColor | WorldColor3 | yes | |
heatAmount | float | yes | |
heatReach | float | yes | |
heatDecay | float | yes |
WorldArmorRuntimeConfig
Object
| Field | Type | Writable | Description |
|---|---|---|---|
collisionLayer | int | yes | |
debrisLayer | int | yes | |
debrisMask | int | yes | |
spatialTag | int | yes | |
renderLayer | float | yes | |
glow | WorldArmorGlow | yes |
WorldArmorSurface
Object
| Field | Type | Writable | Description |
|---|---|---|---|
material | RenderMaterial | yes | |
size | Vec2 | yes | |
pivot | Vec2 | yes | |
rotation | float | yes | |
frameMin | Vec2 | yes | |
frameMax | Vec2 | yes | |
flipX | bool | yes | |
flipY | bool | yes |
WorldArmorShapeDesc
Object
| Field | Type | Writable | Description |
|---|---|---|---|
points | array<float> | yes | |
textureCenter | Vec2 | yes | |
textureSize | Vec2 | yes | |
resolution | int | yes | |
strength | float | yes | |
detectSplits | bool | yes | |
anchors | int | yes | |
image | int | yes | |
layer | float | yes | |
interceptMask | int | yes | |
surface | WorldArmorSurface? | yes |
WorldArmorShatterDesc
Object
| Field | Type | Writable | Description |
|---|---|---|---|
rays | int | yes | |
crackWidth | float | yes | |
jitter | float | yes | |
seed | int | yes |
Functions
worldArmorRuntimeDefaults
fn worldArmorRuntimeDefaults() -> WorldArmorRuntimeConfig
worldArmorRuntimeConfigure
tree worldArmorRuntimeConfigure(WorldArmorRuntimeConfig c) -> bool
worldArmorSurface infallible
infallible fn worldArmorSurface(
RenderMaterial material,
Vec2 size) -> WorldArmorSurface
worldArmorHostSupport infallible
infallible fn worldArmorHostSupport(
Entity host,
array<float> points,
array<int> supported,
int previousRevision) -> int
worldArmorShapeInstall
tree worldArmorShapeInstall(Entity host, WorldArmorShapeDesc shape) -> Entity
worldArmorHostRemove
tree worldArmorHostRemove(Entity host) -> bool
worldArmorPlateRemove
tree worldArmorPlateRemove(Entity plate) -> bool
worldArmorShatter
tree worldArmorShatter(Entity plate, WorldArmorShatterDesc shape) -> bool