Blender  V2.93
BKE_effect.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 #pragma once
20 
25 #include "BLI_utildefines.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 struct Collection;
32 struct Depsgraph;
33 struct ListBase;
34 struct Object;
35 struct ParticleData;
36 struct ParticleKey;
38 struct Scene;
39 struct ViewLayer;
40 
41 struct EffectorWeights *BKE_effector_add_weights(struct Collection *collection);
42 
43 /* Input to effector code */
44 typedef struct EffectedPoint {
45  float *loc;
46  float *vel;
47  float *ave; /* angular velocity for particles with dynamic rotation */
48  float *rot; /* rotation quaternion for particles with dynamic rotation */
49  float vel_to_frame;
50  float vel_to_sec;
51 
52  /* only for particles */
53  float size, charge;
54 
55  unsigned int flag;
56  int index;
57 
58  struct ParticleSystem *psys; /* particle system the point belongs to */
60 
61 typedef struct GuideEffectorData {
62  float vec_to_point[3];
63  float strength;
65 
66 typedef struct EffectorData {
67  /* Effector point */
68  float loc[3];
69  float nor[3];
70  float vel[3];
71 
72  float vec_to_point[3];
73  float distance, falloff;
74 
75  /* only for effector particles */
76  float size, charge;
77 
78  /* only for vortex effector with surface falloff */
79  float nor2[3], vec_to_point2[3];
80 
81  int *index; /* point index */
83 
84 /* used for calculating the effector force */
85 typedef struct EffectorCache {
86  struct EffectorCache *next, *prev;
87 
89  struct Scene *scene;
90  struct Object *ob;
93 
94  struct PartDeflect *pd;
95 
96  /* precalculated for guides */
99 
100  float frame;
101  int flag;
103 
104 typedef struct EffectorRelation {
106 
107  struct Object *ob;
109  struct PartDeflect *pd;
111 
113 struct PartDeflect *BKE_partdeflect_copy(const struct PartDeflect *pd_src);
114 void BKE_partdeflect_free(struct PartDeflect *pd);
115 
117  struct ViewLayer *view_layer,
118  struct Collection *collection);
119 void BKE_effector_relations_free(struct ListBase *lb);
120 
122  struct Object *ob_src,
123  struct ParticleSystem *psys_src,
124  struct EffectorWeights *weights,
125  bool use_rotation);
126 void BKE_effectors_apply(struct ListBase *effectors,
127  struct ListBase *colliders,
128  struct EffectorWeights *weights,
129  struct EffectedPoint *point,
130  float *force,
131  float *wind_force,
132  float *impulse);
133 void BKE_effectors_free(struct ListBase *lb);
134 
136  struct ParticleData *pa,
137  struct ParticleKey *state,
138  struct EffectedPoint *point);
139 void pd_point_from_loc(
140  struct Scene *scene, float *loc, float *vel, int index, struct EffectedPoint *point);
141 void pd_point_from_soft(
142  struct Scene *scene, float *loc, float *vel, int index, struct EffectedPoint *point);
143 
144 /* needed for boids */
145 float effector_falloff(struct EffectorCache *eff,
146  struct EffectorData *efd,
147  struct EffectedPoint *point,
148  struct EffectorWeights *weights);
150  const float co[3],
151  float surface_co[3],
152  float surface_nor[3],
153  float surface_vel[3]);
154 int get_effector_data(struct EffectorCache *eff,
155  struct EffectorData *efd,
156  struct EffectedPoint *point,
157  int real_velocity);
158 
159 /* required for particle_system.c */
160 #if 0
161 void do_physical_effector(struct EffectorData *eff,
162  struct EffectorPoint *point,
163  float *total_force);
164 float effector_falloff(struct EffectorData *eff,
165  struct EffectorPoint *point,
166  struct EffectorWeights *weights);
167 #endif
168 
169 /* EffectedPoint->flag */
170 #define PE_WIND_AS_SPEED 1
171 #define PE_USE_NORMAL_DATA 4
172 
173 /* EffectorData->flag */
174 #define PE_VELOCITY_TO_IMPULSE 1
175 
176 /* ======== Simulation Debugging ======== */
177 
178 unsigned int BKE_sim_debug_data_hash(int i);
179 unsigned int BKE_sim_debug_data_hash_combine(unsigned int kx, unsigned int ky);
180 
181 /* _VA_SIM_DEBUG_HASH#(i, ...): combined hash value of multiple integers */
182 /* internal helpers*/
183 #define _VA_SIM_DEBUG_HASH1(a) (BKE_sim_debug_data_hash(a))
184 #define _VA_SIM_DEBUG_HASH2(a, b) \
185  (BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH1(b)))
186 #define _VA_SIM_DEBUG_HASH3(a, b, c) \
187  (BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH2(b, c)))
188 #define _VA_SIM_DEBUG_HASH4(a, b, c, d) \
189  (BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH3(b, c, d)))
190 #define _VA_SIM_DEBUG_HASH5(a, b, c, d, e) \
191  (BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH4(b, c, d, e)))
192 #define _VA_SIM_DEBUG_HASH6(a, b, c, d, e, f) \
193  (BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), _VA_SIM_DEBUG_HASH5(b, c, d, e, f)))
194 #define _VA_SIM_DEBUG_HASH7(a, b, c, d, e, f, g) \
195  (BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), \
196  _VA_SIM_DEBUG_HASH6(b, c, d, e, f, g)))
197 #define _VA_SIM_DEBUG_HASH8(a, b, c, d, e, f, g, h) \
198  (BKE_sim_debug_data_hash_combine(BKE_sim_debug_data_hash(a), \
199  _VA_SIM_DEBUG_HASH7(b, c, d, e, f, g, h)))
200 
201 #define SIM_DEBUG_HASH(...) VA_NARGS_CALL_OVERLOAD(_VA_SIM_DEBUG_HASH, __VA_ARGS__)
202 
203 typedef struct SimDebugElement {
204  unsigned int category_hash;
205  unsigned int hash;
206 
207  int type;
208  float color[3];
209 
210  float v1[3], v2[3];
211  char str[64];
213 
214 typedef enum eSimDebugElement_Type {
221 
222 typedef struct SimDebugData {
223  struct GHash *gh;
225 
227 
228 void BKE_sim_debug_data_set_enabled(bool enable);
230 void BKE_sim_debug_data_free(void);
231 
233  const float v1[3],
234  const float v2[3],
235  const char *str,
236  float r,
237  float g,
238  float b,
239  const char *category,
240  unsigned int hash);
241 void BKE_sim_debug_data_remove_element(unsigned int hash);
242 
243 #define BKE_sim_debug_data_add_dot(p, r, g, b, category, ...) \
244  { \
245  const float v2[3] = {0.0f, 0.0f, 0.0f}; \
246  BKE_sim_debug_data_add_element( \
247  SIM_DEBUG_ELEM_DOT, p, v2, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
248  }
249 
250 #define BKE_sim_debug_data_add_circle(p, radius, r, g, b, category, ...) \
251  { \
252  const float v2[3] = {radius, 0.0f, 0.0f}; \
253  BKE_sim_debug_data_add_element( \
254  SIM_DEBUG_ELEM_CIRCLE, p, v2, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
255  }
256 
257 #define BKE_sim_debug_data_add_line(p1, p2, r, g, b, category, ...) \
258  { \
259  BKE_sim_debug_data_add_element( \
260  SIM_DEBUG_ELEM_LINE, p1, p2, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
261  }
262 
263 #define BKE_sim_debug_data_add_vector(p, d, r, g, b, category, ...) \
264  { \
265  BKE_sim_debug_data_add_element( \
266  SIM_DEBUG_ELEM_VECTOR, p, d, NULL, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
267  }
268 
269 #define BKE_sim_debug_data_add_string(p, str, r, g, b, category, ...) \
270  { \
271  BKE_sim_debug_data_add_element( \
272  SIM_DEBUG_ELEM_STRING, p, NULL, str, r, g, b, category, SIM_DEBUG_HASH(__VA_ARGS__)); \
273  }
274 
275 #define BKE_sim_debug_data_remove(...) \
276  BKE_sim_debug_data_remove_element(SIM_DEBUG_HASH(__VA_ARGS__))
277 
278 void BKE_sim_debug_data_clear(void);
279 void BKE_sim_debug_data_clear_category(const char *category);
280 
281 #ifdef __cplusplus
282 }
283 #endif
struct ListBase * BKE_effector_relations_create(struct Depsgraph *depsgraph, struct ViewLayer *view_layer, struct Collection *collection)
Definition: effect.c:227
unsigned int BKE_sim_debug_data_hash_combine(unsigned int kx, unsigned int ky)
Definition: effect.c:1228
eSimDebugElement_Type
Definition: BKE_effect.h:214
@ SIM_DEBUG_ELEM_VECTOR
Definition: BKE_effect.h:218
@ SIM_DEBUG_ELEM_LINE
Definition: BKE_effect.h:217
@ SIM_DEBUG_ELEM_CIRCLE
Definition: BKE_effect.h:216
@ SIM_DEBUG_ELEM_STRING
Definition: BKE_effect.h:219
@ SIM_DEBUG_ELEM_DOT
Definition: BKE_effect.h:215
void BKE_sim_debug_data_clear_category(const char *category)
Definition: effect.c:1393
void BKE_partdeflect_free(struct PartDeflect *pd)
Definition: effect.c:137
SimDebugData * _sim_debug_data
Definition: effect.c:1221
struct GuideEffectorData GuideEffectorData
struct SimDebugElement SimDebugElement
bool BKE_sim_debug_data_get_enabled(void)
Definition: effect.c:1295
float effector_falloff(struct EffectorCache *eff, struct EffectorData *efd, struct EffectedPoint *point, struct EffectorWeights *weights)
struct PartDeflect * BKE_partdeflect_new(int type)
Definition: effect.c:86
int get_effector_data(struct EffectorCache *eff, struct EffectorData *efd, struct EffectedPoint *point, int real_velocity)
Definition: effect.c:693
void BKE_effectors_free(struct ListBase *lb)
Definition: effect.c:388
struct EffectorCache EffectorCache
struct EffectedPoint EffectedPoint
void BKE_sim_debug_data_remove_element(unsigned int hash)
Definition: effect.c:1373
void BKE_effectors_apply(struct ListBase *effectors, struct ListBase *colliders, struct EffectorWeights *weights, struct EffectedPoint *point, float *force, float *wind_force, float *impulse)
Definition: effect.c:1145
void BKE_sim_debug_data_set_enabled(bool enable)
Definition: effect.c:1281
void pd_point_from_soft(struct Scene *scene, float *loc, float *vel, int index, struct EffectedPoint *point)
Definition: effect.c:453
void BKE_sim_debug_data_clear(void)
Definition: effect.c:1383
struct PartDeflect * BKE_partdeflect_copy(const struct PartDeflect *pd_src)
Definition: effect.c:125
void BKE_sim_debug_data_free(void)
Definition: effect.c:1300
void BKE_effector_relations_free(struct ListBase *lb)
Definition: effect.c:265
unsigned int BKE_sim_debug_data_hash(int i)
Definition: effect.c:1223
struct EffectorRelation EffectorRelation
struct EffectorData EffectorData
struct EffectorWeights * BKE_effector_add_weights(struct Collection *collection)
Definition: effect.c:73
int closest_point_on_surface(struct SurfaceModifierData *surmd, const float co[3], float surface_co[3], float surface_nor[3], float surface_vel[3])
Definition: effect.c:657
struct SimDebugData SimDebugData
void BKE_sim_debug_data_add_element(int type, const float v1[3], const float v2[3], const char *str, float r, float g, float b, const char *category, unsigned int hash)
Definition: effect.c:1322
void pd_point_from_loc(struct Scene *scene, float *loc, float *vel, int index, struct EffectedPoint *point)
Definition: effect.c:438
void pd_point_from_particle(struct ParticleSimulationData *sim, struct ParticleData *pa, struct ParticleKey *state, struct EffectedPoint *point)
Definition: effect.c:402
struct ListBase * BKE_effectors_create(struct Depsgraph *depsgraph, struct Object *ob_src, struct ParticleSystem *psys_src, struct EffectorWeights *weights, bool use_rotation)
Definition: effect.c:333
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble GLdouble r _GL_VOID_RET _GL_VOID GLfloat GLfloat r _GL_VOID_RET _GL_VOID GLint GLint r _GL_VOID_RET _GL_VOID GLshort GLshort r _GL_VOID_RET _GL_VOID GLdouble GLdouble r
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble v1
ATTR_WARN_UNUSED_RESULT const BMVert * v2
Scene scene
const Depsgraph * depsgraph
static void do_physical_effector(EffectorCache *eff, EffectorData *efd, EffectedPoint *point, float *total_force)
Definition: effect.c:971
#define str(s)
static ulong state[N]
#define hash
Definition: noise.c:169
float vel_to_sec
Definition: BKE_effect.h:50
float * vel
Definition: BKE_effect.h:46
struct ParticleSystem * psys
Definition: BKE_effect.h:58
float vel_to_frame
Definition: BKE_effect.h:49
float * loc
Definition: BKE_effect.h:45
unsigned int flag
Definition: BKE_effect.h:55
float * rot
Definition: BKE_effect.h:48
float * ave
Definition: BKE_effect.h:47
float charge
Definition: BKE_effect.h:53
struct ParticleSystem * psys
Definition: BKE_effect.h:91
struct EffectorCache * prev
Definition: BKE_effect.h:86
struct SurfaceModifierData * surmd
Definition: BKE_effect.h:92
float guide_dir[3]
Definition: BKE_effect.h:98
float guide_loc[4]
Definition: BKE_effect.h:98
float guide_radius
Definition: BKE_effect.h:98
struct Scene * scene
Definition: BKE_effect.h:89
struct GuideEffectorData * guide_data
Definition: BKE_effect.h:97
struct PartDeflect * pd
Definition: BKE_effect.h:94
struct EffectorCache * next
Definition: BKE_effect.h:86
struct Object * ob
Definition: BKE_effect.h:90
struct Depsgraph * depsgraph
Definition: BKE_effect.h:88
float loc[3]
Definition: BKE_effect.h:68
float distance
Definition: BKE_effect.h:73
float vec_to_point[3]
Definition: BKE_effect.h:72
float vec_to_point2[3]
Definition: BKE_effect.h:79
int * index
Definition: BKE_effect.h:81
float nor[3]
Definition: BKE_effect.h:69
float charge
Definition: BKE_effect.h:76
float falloff
Definition: BKE_effect.h:73
float size
Definition: BKE_effect.h:76
float vel[3]
Definition: BKE_effect.h:70
float nor2[3]
Definition: BKE_effect.h:79
struct EffectorRelation * next
Definition: BKE_effect.h:105
struct ParticleSystem * psys
Definition: BKE_effect.h:108
struct PartDeflect * pd
Definition: BKE_effect.h:109
struct Object * ob
Definition: BKE_effect.h:107
struct EffectorRelation * prev
Definition: BKE_effect.h:105
float vec_to_point[3]
Definition: BKE_effect.h:62
struct GHash * gh
Definition: BKE_effect.h:223
char str[64]
Definition: BKE_effect.h:211
float color[3]
Definition: BKE_effect.h:208
unsigned int category_hash
Definition: BKE_effect.h:204
unsigned int hash
Definition: BKE_effect.h:205