Colludium;
Hello, I found another problem.
I am still using the elastic example. If I adjust the particle system damping parameter it runs fine with a value of 6 and bellow with interesting effects at 6. If I set it to 7 or above I get this error on the console:
Uncaught (in promise) RuntimeError: float unrepresentable in integer range
at wasm-function[513]:0x2aa3e
at wasm-function[559]:0x3605e
at wasm-function[445]:0x20694
at wasm-function[94]:0x54b3
at _0x3c5115.<computed> (blob:https://preview.construct.net/062ea27e-a403-4169-a558-2188caa1a6ee:1:76825)
at _0x3442af.<computed>.<computed> [as Step] (blob:https://preview.construct.net/062ea27e-a403-4169-a558-2188caa1a6ee:1:132909)
at LFJSInstance.Tick (blob:https://preview.construct.net/af3aadf6-b18d-4ea5-913e-69960c163866:2360:26)
at C3.Runtime._BehaviorTick (https://editor.construct.net/r171-3/preview/c3/runtime.js:1:25340)
at C3.Runtime.Step (https://editor.construct.net/r171-3/preview/c3/runtime.js:1:26912)
at async C3.Runtime.Tick (https://editor.construct.net/r171-3/preview/c3/runtime.js:1:25977)
==================================================================================================
Here is the exact code I am running--I am only changing line 4.
+ System: On start of layout
-> ctrl: LFJS World: fixed step rate
-> ctrl: LFJS Set World Step 30 steps/sec FPS
-> ctrl: LFJS Particle system damping: 7
-> ctrl: LFJS Set particle as the particle object
// The Elastic or Spring flags needs to be set before spawn otherwise they cannot be set later.
When the particles are created they are bound to their neighbors.
// This is all the Liquidfun documentation says about Elastic particles:
Elastic particles deform and may also bounce when they collide with rigid bodies.
From the cpp code, Elastic particles are connected in triads, or 3s.
-> ctrl: LFJS Turn Elastic behavior ON for spawning
-> ctrl: LFJS Set spawn color to rgba(250,140,30,255)
-> ctrl: LFJS Create particle "tag", shape box at 160, 300, width 200, height 200, angle 0
// This is what the documentation says about Spring particles:
Spring particles produce the effect of being attached to one another, as by a
spring. Particles are "connected" in pairs. Each particle is connected to the
one that was closest to it at time of creation. Once paired, particles do not
change "partners." The farther an external force pulls them from one another,
the greater the power with which they collide when that external force is
removed. No matter how far particles get from one another, the connection
between them does not "snap."
-> ctrl: LFJS Turn Spring behavior ON for spawning
-> ctrl: LFJS Set spawn color to rgba(100,220,60,255)
-> ctrl: LFJS Create particle "tag2", shape box at 440, 300, width 200, height 200, angle 0
thanks for your time.
winkr7