Blender  V3.3
Functions | Variables
rna_rigidbody.c File Reference

RNA property definitions for Rigid Body datatypes. More...

#include <stdlib.h>
#include <string.h>
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "DNA_collection_types.h"
#include "DNA_object_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "DEG_depsgraph_build.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

static void rna_def_rigidbody_world (BlenderRNA *brna)
 
static void rna_def_rigidbody_object (BlenderRNA *brna)
 
static void rna_def_rigidbody_constraint (BlenderRNA *brna)
 
void RNA_def_rigidbody (BlenderRNA *brna)
 

Variables

const EnumPropertyItem rna_enum_rigidbody_object_type_items []
 
const EnumPropertyItem rna_enum_rigidbody_object_shape_items []
 
const EnumPropertyItem rna_enum_rigidbody_constraint_type_items []
 
static const EnumPropertyItem rna_enum_rigidbody_constraint_spring_type_items []
 
static const EnumPropertyItem rigidbody_mesh_source_items []
 

Detailed Description

RNA property definitions for Rigid Body datatypes.

Definition in file rna_rigidbody.c.

Function Documentation

◆ RNA_def_rigidbody()

void RNA_def_rigidbody ( BlenderRNA brna)

◆ rna_def_rigidbody_constraint()

static void rna_def_rigidbody_constraint ( BlenderRNA brna)
static

Definition at line 1194 of file rna_rigidbody.c.

References M_PI, M_PI_4, NC_OBJECT, ND_DRAW, ND_POINTCACHE, NULL, PROP_ANGLE, PROP_ANIMATABLE, PROP_BOOLEAN, PROP_EDITABLE, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_NONE, PROP_POINTER, PROP_UNIT_LENGTH, PROP_UNIT_VELOCITY, PROPOVERRIDE_OVERRIDABLE_LIBRARY, RBC_FLAG_DISABLE_COLLISIONS, RBC_FLAG_ENABLED, RBC_FLAG_OVERRIDE_SOLVER_ITERATIONS, RBC_FLAG_USE_BREAKING, RBC_FLAG_USE_LIMIT_ANG_X, RBC_FLAG_USE_LIMIT_ANG_Y, RBC_FLAG_USE_LIMIT_ANG_Z, RBC_FLAG_USE_LIMIT_LIN_X, RBC_FLAG_USE_LIMIT_LIN_Y, RBC_FLAG_USE_LIMIT_LIN_Z, RBC_FLAG_USE_MOTOR_ANG, RBC_FLAG_USE_MOTOR_LIN, RBC_FLAG_USE_SPRING_ANG_X, RBC_FLAG_USE_SPRING_ANG_Y, RBC_FLAG_USE_SPRING_ANG_Z, RBC_FLAG_USE_SPRING_X, RBC_FLAG_USE_SPRING_Y, RBC_FLAG_USE_SPRING_Z, RNA_def_property(), RNA_def_property_boolean_funcs(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_enum_funcs(), RNA_def_property_enum_items(), RNA_def_property_enum_sdna(), RNA_def_property_flag(), RNA_def_property_float_default(), RNA_def_property_float_funcs(), RNA_def_property_float_sdna(), RNA_def_property_int_default(), RNA_def_property_int_funcs(), RNA_def_property_int_sdna(), RNA_def_property_override_flag(), RNA_def_property_pointer_sdna(), RNA_def_property_range(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_path_func(), RNA_def_struct_sdna(), RNA_def_struct_ui_text(), rna_enum_rigidbody_constraint_spring_type_items, and rna_enum_rigidbody_constraint_type_items.

Referenced by RNA_def_rigidbody().

◆ rna_def_rigidbody_object()

static void rna_def_rigidbody_object ( BlenderRNA brna)
static

◆ rna_def_rigidbody_world()

static void rna_def_rigidbody_world ( BlenderRNA brna)
static

Variable Documentation

◆ rigidbody_mesh_source_items

const EnumPropertyItem rigidbody_mesh_source_items[]
static
Initial value:
= {
{RBO_MESH_BASE, "BASE", 0, "Base", "Base mesh"},
{RBO_MESH_DEFORM, "DEFORM", 0, "Deform", "Deformations (shape keys, deform modifiers)"},
{RBO_MESH_FINAL, "FINAL", 0, "Final", "All modifiers"},
{0, NULL, 0, NULL, NULL},
}
@ RBO_MESH_DEFORM
@ RBO_MESH_FINAL
@ RBO_MESH_BASE

Definition at line 124 of file rna_rigidbody.c.

Referenced by rna_def_rigidbody_object().

◆ rna_enum_rigidbody_constraint_spring_type_items

const EnumPropertyItem rna_enum_rigidbody_constraint_spring_type_items[]
static
Initial value:
= {
"SPRING1",
ICON_NONE,
"Blender 2.7",
"Spring implementation used in blender 2.7. Damping is capped at 1.0"},
"SPRING2",
ICON_NONE,
"Blender 2.8",
"New implementation available since 2.8"},
{0, NULL, 0, NULL, NULL},
}
@ RBC_SPRING_TYPE1
@ RBC_SPRING_TYPE2

Definition at line 108 of file rna_rigidbody.c.

Referenced by rna_def_rigidbody_constraint().

◆ rna_enum_rigidbody_constraint_type_items

const EnumPropertyItem rna_enum_rigidbody_constraint_type_items[]

Definition at line 75 of file rna_rigidbody.c.

Referenced by RIGIDBODY_OT_constraint_add(), and rna_def_rigidbody_constraint().

◆ rna_enum_rigidbody_object_shape_items

const EnumPropertyItem rna_enum_rigidbody_object_shape_items[]
Initial value:
= {
"BOX",
ICON_MESH_CUBE,
"Box",
"Box-like shapes (i.e. cubes), including planes (i.e. ground planes)"},
{RB_SHAPE_SPHERE, "SPHERE", ICON_MESH_UVSPHERE, "Sphere", ""},
{RB_SHAPE_CAPSULE, "CAPSULE", ICON_MESH_CAPSULE, "Capsule", ""},
{RB_SHAPE_CYLINDER, "CYLINDER", ICON_MESH_CYLINDER, "Cylinder", ""},
{RB_SHAPE_CONE, "CONE", ICON_MESH_CONE, "Cone", ""},
"CONVEX_HULL",
ICON_MESH_ICOSPHERE,
"Convex Hull",
"A mesh-like surface encompassing (i.e. shrinkwrap over) all vertices (best results with "
"fewer vertices)"},
"MESH",
ICON_MESH_MONKEY,
"Mesh",
"Mesh consisting of triangles only, allowing for more detailed interactions than convex "
"hulls"},
"COMPOUND",
ICON_MESH_DATA,
"Compound Parent",
"Combines all of its direct rigid body children into one rigid object"},
{0, NULL, 0, NULL, NULL},
}
@ RB_SHAPE_CAPSULE
@ RB_SHAPE_CONVEXH
@ RB_SHAPE_COMPOUND
@ RB_SHAPE_BOX
@ RB_SHAPE_TRIMESH
@ RB_SHAPE_SPHERE
@ RB_SHAPE_CYLINDER
@ RB_SHAPE_CONE

Definition at line 44 of file rna_rigidbody.c.

Referenced by RIGIDBODY_OT_shape_change(), and rna_def_rigidbody_object().

◆ rna_enum_rigidbody_object_type_items

const EnumPropertyItem rna_enum_rigidbody_object_type_items[]
Initial value:
= {
"ACTIVE",
0,
"Active",
"Object is directly controlled by simulation results"},
"PASSIVE",
0,
"Passive",
"Object is directly controlled by animation system"},
{0, NULL, 0, NULL, NULL},
}
@ RBO_TYPE_ACTIVE
@ RBO_TYPE_PASSIVE

Definition at line 29 of file rna_rigidbody.c.

Referenced by RIGIDBODY_OT_object_add(), RIGIDBODY_OT_objects_add(), and rna_def_rigidbody_object().