Blender V5.3
DEG_depsgraph_physics.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2018 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "DNA_listBase.h"
14
15#include "DEG_depsgraph.hh"
16
17namespace blender {
18
19struct Collection;
21struct DepsNodeHandle;
22struct Depsgraph;
23struct EffectorRelation;
24struct EffectorWeights;
25struct ModifierData;
26struct Object;
27
34
35/* Get collision/effector relations from collection or entire scene. These
36 * created during depsgraph relations building and should only be accessed
37 * during evaluation. */
38ListBaseT<EffectorRelation> *DEG_get_effector_relations(const Depsgraph *depsgraph,
39 Collection *collection);
40ListBaseT<CollisionRelation> *DEG_get_collision_relations(const Depsgraph *depsgraph,
41 Collection *collection,
42 unsigned int modifier_type);
43
44/* Build collision/effector relations for depsgraph. */
45using DEG_CollobjFilterFunction = bool (*)(Object *obj, ModifierData *md);
46
47void DEG_add_collision_relations(DepsNodeHandle *handle,
48 Object *object,
49 Collection *collection,
50 unsigned int modifier_type,
51 DEG_CollobjFilterFunction filter_function,
52 const char *name);
53void DEG_add_forcefield_relations(DepsNodeHandle *handle,
54 Object *object,
55 EffectorWeights *eff,
56 bool add_absorption,
57 int skip_forcefield,
58 const char *name);
59
60} // namespace blender
These structs are the foundation for all linked lists in the library system.
BMesh Iterators.
ListBaseT< EffectorRelation > * DEG_get_effector_relations(const Depsgraph *depsgraph, Collection *collection)
void DEG_add_collision_relations(DepsNodeHandle *handle, Object *object, Collection *collection, unsigned int modifier_type, DEG_CollobjFilterFunction filter_function, const char *name)
ListBaseT< CollisionRelation > * DEG_get_collision_relations(const Depsgraph *depsgraph, Collection *collection, unsigned int modifier_type)
bool(*)(Object *obj, ModifierData *md) DEG_CollobjFilterFunction
void DEG_add_forcefield_relations(DepsNodeHandle *handle, Object *object, EffectorWeights *eff, bool add_absorption, int skip_forcefield, const char *name)