Blender
V5.3
source
blender
blenkernel
BKE_softbody.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
#pragma once
5
9
10
namespace
blender
{
11
12
struct
Depsgraph;
13
struct
Object
;
14
struct
Scene
;
15
struct
SoftBody
;
16
17
struct
BodyPoint
{
18
float
origS
[3],
origE
[3],
origT
[3],
pos
[3],
vec
[3],
force
[3];
19
float
goal
;
20
float
prevpos
[3],
prevvec
[3],
prevdx
[3],
prevdv
[3];
/* used for Heun integration */
21
float
impdv
[3],
impdx
[3];
22
int
nofsprings
;
23
int
*
springs
;
24
float
choke
,
choke2
,
frozen
;
25
float
colball
;
26
short
loc_flag
;
/* reserved by locale module specific states */
27
// char octantflag;
28
float
mass
;
29
float
springweight
;
30
};
31
35
extern
struct
SoftBody
*
sbNew
();
36
40
extern
void
sbFree
(
struct
Object
*ob);
41
42
/*
43
* Copy soft-body data.
44
*/
45
extern
SoftBody
*
sbCopy
(
struct
SoftBody
*sb,
int
flag);
46
50
extern
void
sbFreeSimulation
(
struct
SoftBody
*sb);
51
55
extern
void
sbObjectStep
(
struct
Depsgraph *depsgraph,
56
struct
Scene
*scene,
57
struct
Object
*ob,
58
float
cfra,
59
float
(*vertexCos)[3],
60
int
numVerts);
61
65
extern
void
sbObjectToSoftbody
(
struct
Object
*ob);
66
71
extern
void
sbSetInterruptCallBack
(
int
(*f)());
72
86
extern
void
SB_estimate_transform
(
Object
*ob,
float
lloc[3],
float
lrot[3][3],
float
lscale[3][3]);
87
88
}
// namespace blender
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::sbFreeSimulation
void sbFreeSimulation(struct SoftBody *sb)
Definition
softbody.cc:3194
blender::sbObjectStep
void sbObjectStep(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, float cfra, float(*vertexCos)[3], int numVerts)
Definition
softbody.cc:3514
blender::sbNew
struct SoftBody * sbNew()
Definition
softbody.cc:3068
blender::sbCopy
SoftBody * sbCopy(struct SoftBody *sb, int flag)
Definition
softbody.cc:3145
blender::SB_estimate_transform
void SB_estimate_transform(Object *ob, float lloc[3], float lrot[3][3], float lscale[3][3])
Definition
softbody.cc:3248
blender::sbSetInterruptCallBack
void sbSetInterruptCallBack(int(*f)())
Definition
softbody.cc:3218
blender::sbFree
void sbFree(struct Object *ob)
Definition
softbody.cc:3120
blender::sbObjectToSoftbody
void sbObjectToSoftbody(struct Object *ob)
Definition
softbody.cc:3199
blender::BodyPoint
Definition
BKE_softbody.h:17
blender::BodyPoint::colball
float colball
Definition
BKE_softbody.h:25
blender::BodyPoint::mass
float mass
Definition
BKE_softbody.h:28
blender::BodyPoint::prevdx
float prevdx[3]
Definition
BKE_softbody.h:20
blender::BodyPoint::origT
float origT[3]
Definition
BKE_softbody.h:18
blender::BodyPoint::impdx
float impdx[3]
Definition
BKE_softbody.h:21
blender::BodyPoint::prevvec
float prevvec[3]
Definition
BKE_softbody.h:20
blender::BodyPoint::springs
int * springs
Definition
BKE_softbody.h:23
blender::BodyPoint::frozen
float frozen
Definition
BKE_softbody.h:24
blender::BodyPoint::springweight
float springweight
Definition
BKE_softbody.h:29
blender::BodyPoint::nofsprings
int nofsprings
Definition
BKE_softbody.h:22
blender::BodyPoint::origS
float origS[3]
Definition
BKE_softbody.h:18
blender::BodyPoint::pos
float pos[3]
Definition
BKE_softbody.h:18
blender::BodyPoint::prevpos
float prevpos[3]
Definition
BKE_softbody.h:20
blender::BodyPoint::prevdv
float prevdv[3]
Definition
BKE_softbody.h:20
blender::BodyPoint::impdv
float impdv[3]
Definition
BKE_softbody.h:21
blender::BodyPoint::origE
float origE[3]
Definition
BKE_softbody.h:18
blender::BodyPoint::force
float force[3]
Definition
BKE_softbody.h:18
blender::BodyPoint::choke2
float choke2
Definition
BKE_softbody.h:24
blender::BodyPoint::loc_flag
short loc_flag
Definition
BKE_softbody.h:26
blender::BodyPoint::goal
float goal
Definition
BKE_softbody.h:19
blender::BodyPoint::vec
float vec[3]
Definition
BKE_softbody.h:18
blender::BodyPoint::choke
float choke
Definition
BKE_softbody.h:24
blender::Object
Definition
DNA_object_types.h:466
blender::Scene
Definition
DNA_scene_types.h:2876
blender::SoftBody
Definition
DNA_object_force_types.h:299
Generated on
for Blender by
doxygen
1.18.0