Flex2d geodynamics reference
![flex2d geodynamics reference flex2d geodynamics reference](https://scfh.ru/files/medialibrary/06f/06f3ebb5bcfe7a7b5ce894c92d2d612a.jpg)
Ĭontrols how strongly particles attempt to minimize surface area, default: 0.0, range. If true then particles with phase 0 are considered fluid particles and interact using the position based fluids method.Ĭontrol how strongly particles hold each other together, default: 0.025, range. Lift force applied to particles belonging to dynamic triangles, proportional to velocity^2*area in the direction perpendicular to velocity and (if possible), parallel to the plane normal. Particles with a velocity magnitude 0 for wind to affect triangles.ĭrag force applied to particles belonging to dynamic triangles, proportional to velocity^2*area in the negative velocity direction. The distance fluid particles are spaced at the rest density, must be in the range (0, radius], for fluids this should generally be 50-70% of mRadius, for rigids this can simply be the same as the particle radius.Ĭoefficient of friction used when colliding against shapes.Ĭoefficient of static friction used when colliding against shapes.Ĭoefficient of friction used when colliding particles.Ĭoefficient of restitution used when colliding against shapes, particle collisions are always inelastic.Ĭontrols how strongly particles stick to surfaces they hit, default 0.0, range.
![flex2d geodynamics reference flex2d geodynamics reference](https://0.academia-photos.com/40963911/11133288/12424249/s65_jaroslaw.bosy.jpg)
The distance non-fluid particles attempt to maintain from each other, must be in the range (0, radius]. The maximum interaction radius for particles. Number of solver iterations to perform per-substep.Ĭonstant acceleration applied to all particles. Fle圎rrorCallback) (const char *msg, const char *file, int line)įlexInit (int version=FLEX_VERSION, Fle圎rrorCallback errorFunc=NULL)įlexCreateSolver (int maxParticles, int maxDiffuseParticles, unsigned char maxNeighborsPerParticle=96)įlexUpdateSolver (FlexSolver *s, float dt, int substeps, FlexTimers *timers)įlexSetParams (FlexSolver *s, const FlexParams *params)įlexSetActive (FlexSolver *s, const int *indices, int n, FlexMemory source)įlexGetActive (FlexSolver *s, int *indices, FlexMemory target)įlexSetParticles (FlexSolver *s, const float *p, int n, FlexMemory source)įlexGetParticles (FlexSolver *s, float *p, int n, FlexMemory target)įlexGetSmoothParticles (FlexSolver *s, float *p, int n, FlexMemory target)įlexSetVelocities (FlexSolver *s, const float *v, int n, FlexMemory source)įlexGetVelocities (FlexSolver *s, float *v, int n, FlexMemory target)įlexSetPhases (FlexSolver *s, const int *phases, int n, FlexMemory source)įlexGetPhases (FlexSolver *s, int *phases, int n, FlexMemory target)įlexSetSprings (FlexSolver *s, const int *indices, const float *restLengths, const float *stiffness, int numSprings, FlexMemory source)įlexGetSprings (FlexSolver *s, int *indices, float *restLengths, float *stiffness, int numSprings, FlexMemory target)įlexSetRigids (FlexSolver *s, const int *offsets, const int *indices, const float *restPositions, const float *restNormals, const float *stiffness, const float *rotations, int numRigids, FlexMemory source)įlexSetNormals (FlexSolver *s, const float *normals, int n, FlexMemory source)įlexGetNormals (FlexSolver *s, float *normals, int n, FlexMemory target)įlexGetRigidTransforms (FlexSolver *s, float *rotations, float *translations, FlexMemory target)įlexSetConvexes (FlexSolver *s, const float *aabbMin, const float *aabbMax, const int *planeOffsets, const int *planeCounts, const float *planes, const float *positions, const float *rotations, const float *prevPositions, const float *prevRotations, const int *flags, int numConvexes, int numPlanes, FlexMemory source)įlexSetTriangles (FlexSolver *s, const int *indices, const float *vertices, int numTris, int numVertices, float cellSize, FlexMemory source)įlexSetFields (FlexSolver *s, const FlexSDF *shapes, int numShapes)įlexSetDynamicTriangles (FlexSolver *s, const int *indices, const float *normals, int numTris, FlexMemory source)įlexGetDynamicTriangles (FlexSolver *s, int *indices, float *normals, int numTris, FlexMemory target)įlexSetInflatables (FlexSolver *s, const int *startTris, const int *numTris, float *restVolumes, float *overPressures, float *constraintScales, int numInflatables, FlexMemory source)įlexGetDensities (FlexSolver *s, float *densities, FlexMemory target)įlexGetAnisotropy (FlexSolver *s, float *q1, float *q2, float *q3, FlexMemory target)įlexGetDiffuseParticles (FlexSolver *s, float *p, float *v, int *indices, FlexMemory target)įlexSetDiffuseParticles (FlexSolver *s, const float *p, const float *v, int n, FlexMemory source)įlexGetContacts (FlexSolver *s, float *planes, int *indices, unsigned char *counts, FlexMemory target)įlexGetBounds (FlexSolver *s, float *lower, float *upper)