diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_softbody.h')
-rw-r--r-- | source/blender/blenkernel/BKE_softbody.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_softbody.h b/source/blender/blenkernel/BKE_softbody.h index 15200bf46f8..0f58b93730a 100644 --- a/source/blender/blenkernel/BKE_softbody.h +++ b/source/blender/blenkernel/BKE_softbody.h @@ -37,12 +37,25 @@ struct Object; struct SoftBody; +typedef struct BodyPoint { + float origS[3], origE[3], origT[3], pos[3], vec[3], force[3]; + float goal; + float prevpos[3], prevvec[3], prevdx[3], prevdv[3]; /* used for Heun integration */ + int nofsprings; int *springs; + float choke; + float colball; + short flag; + char octantflag; +} BodyPoint; + /* allocates and initializes general main data */ extern struct SoftBody *sbNew(void); /* frees internal data and softbody itself */ extern void sbFree(struct SoftBody *sb); +extern void softbody_clear_cache(struct Object *ob, float framenr); + /* do one simul step, reading and writing vertex locs from given array */ extern void sbObjectStep(struct Object *ob, float framnr, float (*vertexCos)[3], int numVerts); |