Skip to main content

cturtle/armor

include "cturtle/armor";

Types​

WorldArmorGlow​

Object

FieldTypeWritableDescription
colorWorldColor3yes
amountfloatyes
reachfloatyes
scorchfloatyes
decayfloatyes
damageTexturefloatyes
heatColorWorldColor3yes
heatAmountfloatyes
heatReachfloatyes
heatDecayfloatyes

WorldArmorRuntimeConfig​

Object

FieldTypeWritableDescription
collisionLayerintyes
debrisLayerintyes
debrisMaskintyes
spatialTagintyes
renderLayerfloatyes
glowWorldArmorGlowyes

WorldArmorSurface​

Object

FieldTypeWritableDescription
materialRenderMaterialyes
sizeVec2yes
pivotVec2yes
rotationfloatyes
frameMinVec2yes
frameMaxVec2yes
flipXboolyes
flipYboolyes

WorldArmorShapeDesc​

Object

FieldTypeWritableDescription
pointsarray<float>yes
textureCenterVec2yes
textureSizeVec2yes
resolutionintyes
strengthfloatyes
detectSplitsboolyes
anchorsintyes
imageintyes
layerfloatyes
interceptMaskintyes
surfaceWorldArmorSurface?yes

WorldArmorShatterDesc​

Object

FieldTypeWritableDescription
raysintyes
crackWidthfloatyes
jitterfloatyes
seedintyes

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