Blender V5.0
DEG_depsgraph_physics.hh File Reference
#include "DEG_depsgraph.hh"

Go to the source code of this file.

Typedefs

using DEG_CollobjFilterFunction = bool (*)(Object *obj, ModifierData *md)

Enumerations

enum  ePhysicsRelationType {
  DEG_PHYSICS_EFFECTOR = 0 , DEG_PHYSICS_COLLISION = 1 , DEG_PHYSICS_SMOKE_COLLISION = 2 , DEG_PHYSICS_DYNAMIC_BRUSH = 3 ,
  DEG_PHYSICS_RELATIONS_NUM = 4
}

Functions

ListBaseDEG_get_effector_relations (const Depsgraph *depsgraph, Collection *collection)
ListBaseDEG_get_collision_relations (const Depsgraph *depsgraph, Collection *collection, unsigned int modifier_type)
void DEG_add_collision_relations (DepsNodeHandle *handle, Object *object, Collection *collection, unsigned int modifier_type, DEG_CollobjFilterFunction filter_function, const char *name)
void DEG_add_forcefield_relations (DepsNodeHandle *handle, Object *object, EffectorWeights *eff, bool add_absorption, int skip_forcefield, const char *name)

Detailed Description

Physics utilities for effectors and collision.

Definition in file DEG_depsgraph_physics.hh.

Typedef Documentation

◆ DEG_CollobjFilterFunction

using DEG_CollobjFilterFunction = bool (*)(Object *obj, ModifierData *md)

Definition at line 40 of file DEG_depsgraph_physics.hh.

Enumeration Type Documentation

◆ ePhysicsRelationType

Enumerator
DEG_PHYSICS_EFFECTOR 
DEG_PHYSICS_COLLISION 
DEG_PHYSICS_SMOKE_COLLISION 
DEG_PHYSICS_DYNAMIC_BRUSH 
DEG_PHYSICS_RELATIONS_NUM 

Definition at line 23 of file DEG_depsgraph_physics.hh.

Function Documentation

◆ DEG_add_collision_relations()

◆ DEG_add_forcefield_relations()

◆ DEG_get_collision_relations()

ListBase * DEG_get_collision_relations ( const Depsgraph * depsgraph,
Collection * collection,
unsigned int modifier_type )

◆ DEG_get_effector_relations()

ListBase * DEG_get_effector_relations ( const Depsgraph * depsgraph,
Collection * collection )