Blender V5.3
rigidbody.cc File Reference

Blender-side interface and methods for dealing with Rigid Body simulations. More...

#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include "CLG_log.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_mutex.hh"
#include "DNA_ID.h"
#include "DNA_collection_types.h"
#include "DNA_mesh_types.h"
#include "DNA_object_force_types.h"
#include "DNA_object_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "BKE_collection.hh"
#include "BKE_effect.h"
#include "BKE_global.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_main.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_runtime.hh"
#include "BKE_object.hh"
#include "BKE_pointcache.h"
#include "BKE_report.hh"
#include "BKE_rigidbody.h"
#include "BKE_scene.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"

Go to the source code of this file.

Classes

struct  blender::RigidBodyWorld_Runtime

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static void blender::RB_dworld_remove_constraint (void *, void *)
static void blender::RB_dworld_remove_body (void *, void *)
static void blender::RB_dworld_delete (void *)
static void blender::RB_body_delete (void *)
static void blender::RB_shape_delete (void *)
static void blender::RB_constraint_delete (void *)
static RigidBodyOb * blender::rigidbody_copy_object (const Object *ob, const int flag)
static RigidBodyCon * blender::rigidbody_copy_constraint (const Object *ob, const int)
void blender::BKE_rigidbody_object_copy (Main *bmain, Object *ob_dst, const Object *ob_src, const int flag)
Setup
void blender::BKE_rigidbody_world_init_runtime (struct RigidBodyWorld *rbw)
rbDynamicsWorld * blender::BKE_rigidbody_world_physics (struct RigidBodyWorld *rbw)
void blender::BKE_rigidbody_validate_sim_world (struct Scene *scene, struct RigidBodyWorld *rbw, bool rebuild)
void blender::BKE_rigidbody_calc_volume (struct Object *ob, float *r_vol)
void blender::BKE_rigidbody_calc_center_of_mass (struct Object *ob, float r_center[3])
struct RigidBodyWorld * blender::BKE_rigidbody_create_world (struct Scene *scene)
struct RigidBodyWorld * blender::BKE_rigidbody_world_copy (struct RigidBodyWorld *rbw, int flag)
void blender::BKE_rigidbody_world_groups_relink (struct RigidBodyWorld *rbw)
struct RigidBodyOb * blender::BKE_rigidbody_create_object (struct Scene *scene, struct Object *ob, eRigidBodyOb_Type type)
struct RigidBodyCon * blender::BKE_rigidbody_create_constraint (struct Scene *scene, struct Object *ob, eRigidBodyCon_Type type)
void blender::BKE_rigidbody_objects_collection_validate (struct Main *bmain, struct Scene *scene, struct RigidBodyWorld *rbw)
void blender::BKE_rigidbody_constraints_collection_validate (struct Scene *scene, struct RigidBodyWorld *rbw)
void blender::BKE_rigidbody_main_collection_object_add (struct Main *bmain, struct Collection *collection, struct Object *object)
Memory Management
void blender::BKE_rigidbody_free_world (struct Scene *scene)
void blender::BKE_rigidbody_free_object (struct Object *ob, struct RigidBodyWorld *rbw)
void blender::BKE_rigidbody_free_constraint (struct Object *ob)
Simulation
bool blender::BKE_rigidbody_is_affected_by_simulation (struct Object *ob)
void blender::BKE_rigidbody_sync_transforms (struct RigidBodyWorld *rbw, struct Object *ob, float ctime)
void blender::BKE_rigidbody_aftertrans_update (struct Object *ob, float loc[3], float rot[3], float quat[4], float rotAxis[3], float rotAngle)
bool blender::BKE_rigidbody_check_sim_running (struct RigidBodyWorld *rbw, float ctime)
void blender::BKE_rigidbody_cache_reset (struct RigidBodyWorld *rbw)
void blender::BKE_rigidbody_rebuild_world (struct Depsgraph *depsgraph, struct Scene *scene, float ctime)
void blender::BKE_rigidbody_do_simulation (struct Depsgraph *depsgraph, struct Scene *scene, float ctime)
Utilities
struct RigidBodyWorld * blender::BKE_rigidbody_get_world (struct Scene *scene)
void blender::BKE_rigidbody_ensure_local_object (struct Main *bmain, struct Object *ob)
bool blender::BKE_rigidbody_add_object (struct Main *bmain, struct Scene *scene, struct Object *ob, eRigidBodyOb_Type type, struct ReportList *reports)
void blender::BKE_rigidbody_remove_object (struct Main *bmain, struct Scene *scene, struct Object *ob, bool free_us)
void blender::BKE_rigidbody_remove_constraint (struct Main *bmain, struct Scene *scene, struct Object *ob, bool free_us)
Depsgraph evaluation
void blender::BKE_rigidbody_rebuild_sim (struct Depsgraph *depsgraph, struct Scene *scene)
void blender::BKE_rigidbody_eval_simulation (struct Depsgraph *depsgraph, struct Scene *scene)
void blender::BKE_rigidbody_object_sync_transforms (struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob)
Iterator
void blender::BKE_rigidbody_world_id_loop (struct RigidBodyWorld *rbw, RigidbodyWorldIDFunc func, void *userdata)

Detailed Description

Blender-side interface and methods for dealing with Rigid Body simulations.

Definition in file rigidbody.cc.