Blender V5.3
blender::RigidBodyOb Struct Reference

#include <DNA_rigidbody_types.h>

Public Attributes

eRigidBodyOb_Type type = RBO_TYPE_ACTIVE
eRigidBody_Shape shape = RB_SHAPE_BOX
eRigidBodyOb_Flag flag = {}
int col_groups = 0
eRigidBody_MeshSource mesh_source = RBO_MESH_BASE
char _pad [2] = {}
float mass = 0
float friction = 0
float restitution = 0
float margin = 0
float lin_damping = 0
float ang_damping = 0
float lin_sleep_thresh = 0
float ang_sleep_thresh = 0
float orn [4] = {}
float pos [3] = {}
char _pad1 [4] = {}
struct RigidBodyOb_Shared * shared = nullptr

Detailed Description

Definition at line 242 of file DNA_rigidbody_types.h.

Member Data Documentation

◆ _pad

char blender::RigidBodyOb::_pad[2] = {}

Definition at line 254 of file DNA_rigidbody_types.h.

◆ _pad1

char blender::RigidBodyOb::_pad1[4] = {}

Definition at line 282 of file DNA_rigidbody_types.h.

◆ ang_damping

float blender::RigidBodyOb::ang_damping = 0

Damping for angular velocities.

Definition at line 271 of file DNA_rigidbody_types.h.

◆ ang_sleep_thresh

float blender::RigidBodyOb::ang_sleep_thresh = 0

Deactivation threshold for angular velocities.

Definition at line 276 of file DNA_rigidbody_types.h.

◆ col_groups

int blender::RigidBodyOb::col_groups = 0

Collision groups that determines which rigid bodies can collide with each other.

Definition at line 251 of file DNA_rigidbody_types.h.

◆ flag

◆ friction

float blender::RigidBodyOb::friction = 0

Resistance of object to movement.

Definition at line 261 of file DNA_rigidbody_types.h.

◆ lin_damping

float blender::RigidBodyOb::lin_damping = 0

Damping for linear velocities.

Definition at line 269 of file DNA_rigidbody_types.h.

◆ lin_sleep_thresh

float blender::RigidBodyOb::lin_sleep_thresh = 0

Deactivation threshold for linear velocities.

Definition at line 274 of file DNA_rigidbody_types.h.

◆ margin

float blender::RigidBodyOb::margin = 0

Tolerance for detecting collisions.

Definition at line 266 of file DNA_rigidbody_types.h.

◆ mass

float blender::RigidBodyOb::mass = 0

How much object 'weighs' (i.e. absolute 'amount of stuff' it holds).

Definition at line 258 of file DNA_rigidbody_types.h.

◆ mesh_source

eRigidBody_MeshSource blender::RigidBodyOb::mesh_source = RBO_MESH_BASE

Mesh source for mesh based collision shapes.

Definition at line 253 of file DNA_rigidbody_types.h.

Referenced by blender::deg::rigidbody_object_depends_on_evaluated_geometry().

◆ orn

float blender::RigidBodyOb::orn[4] = {}

◆ pos

float blender::RigidBodyOb::pos[3] = {}

◆ restitution

float blender::RigidBodyOb::restitution = 0

How 'bouncy' object is when it collides.

Definition at line 263 of file DNA_rigidbody_types.h.

◆ shape

◆ shared

struct RigidBodyOb_Shared* blender::RigidBodyOb::shared = nullptr

This pointer is shared between all evaluated copies.

Definition at line 285 of file DNA_rigidbody_types.h.

Referenced by blender::BKE_rigidbody_free_object(), blender::object_blend_read_data(), blender::ptcache_rigidbody_write(), and blender::rigidbody_copy_object().

◆ type


The documentation for this struct was generated from the following file: