ObstacleParams
strata-game-library/presets / ObstacleParams
Interface: ObstacleParams
Defined in: obstacles/index.ts:12
Obstacle Template
What are the knobs for ANY obstacle? Forms: rock, log, crate, barrel, fence, wall, pit, spike, etc.
Properties
bounceStrength
bounceStrength:
number
Defined in: obstacles/index.ts:59
Bounce strength
bouncy
bouncy:
boolean
Defined in: obstacles/index.ts:57
Bouncy
bumpiness
bumpiness:
number
Defined in: obstacles/index.ts:33
Bumpiness/displacement
crackLevel
crackLevel:
number
Defined in: obstacles/index.ts:37
Cracks/damage
damageAmount
damageAmount:
number
Defined in: obstacles/index.ts:51
Damage amount
damaging
damaging:
boolean
Defined in: obstacles/index.ts:49
Deals damage on contact
depth
depth:
number
Defined in: obstacles/index.ts:19
Depth
destructible
destructible:
boolean
Defined in: obstacles/index.ts:45
Can be destroyed
glow
glow:
number
Defined in: obstacles/index.ts:83
Glowing
health
health:
number
Defined in: obstacles/index.ts:47
Health if destructible
height
height:
number
Defined in: obstacles/index.ts:17
Height
hitSound
hitSound:
"none"|"thud"|"clang"|"splash"|"crack"|"shatter"
Defined in: obstacles/index.ts:81
Sound on hit
material
material:
"ice"|"fire"|"water"|"crystal"|"stone"|"wood"|"metal"|"organic"|"energy"
Defined in: obstacles/index.ts:29
Surface material
mossCoverage
mossCoverage:
number
Defined in: obstacles/index.ts:35
Moss/growth coverage
movementDistance
movementDistance:
number
Defined in: obstacles/index.ts:67
Movement distance
movementPattern
movementPattern:
"none"|"horizontal"|"vertical"|"circular"|"random"
Defined in: obstacles/index.ts:65
Movement pattern
movementSpeed
movementSpeed:
number
Defined in: obstacles/index.ts:69
Movement speed
moving
moving:
boolean
Defined in: obstacles/index.ts:63
Moving obstacle
particles
particles:
"ice"|"fire"|"none"|"energy"|"dust"|"sparks"|"bubbles"
Defined in: obstacles/index.ts:79
Particle effect
rotating
rotating:
boolean
Defined in: obstacles/index.ts:71
Rotating
rotationAxis
rotationAxis:
"x"|"y"|"z"
Defined in: obstacles/index.ts:75
Rotation axis
rotationSpeed
rotationSpeed:
number
Defined in: obstacles/index.ts:73
Rotation speed
roughness
roughness:
number
Defined in: obstacles/index.ts:31
Surface roughness
rounding
rounding:
number
Defined in: obstacles/index.ts:23
Roundness of edges
shadowIntensity
shadowIntensity:
number
Defined in: obstacles/index.ts:85
Shadow intensity
shape
shape:
"flat"|"sphere"|"box"|"cylinder"|"cone"|"irregular"
Defined in: obstacles/index.ts:21
Base shape
slowFactor
slowFactor:
number
Defined in: obstacles/index.ts:55
Slow factor (1 = no slow)
slowing
slowing:
boolean
Defined in: obstacles/index.ts:53
Slows player on contact
solid
solid:
boolean
Defined in: obstacles/index.ts:43
Is it solid/blocking
taper
taper:
number
Defined in: obstacles/index.ts:25
Taper (0 = straight, positive = narrower at top)
wetness
wetness:
number
Defined in: obstacles/index.ts:39
Wetness
width
width:
number
Defined in: obstacles/index.ts:15
Width
