Blender  V3.3
Public Attributes | List of all members
SoftBody Struct Reference

#include <DNA_object_force_types.h>

Public Attributes

int totpoint
 
int totspring
 
struct BodyPointbpoint
 
struct BodySpringbspring
 
char _pad
 
char msg_lock
 
short msg_value
 
float nodemass
 
char namedVG_Mass [64]
 
float grav
 
float mediafrict
 
float rklimit
 
float physics_speed
 
float goalspring
 
float goalfrict
 
float mingoal
 
float maxgoal
 
float defgoal
 
short vertgroup
 
char namedVG_Softgoal [64]
 
short fuzzyness
 
float inspring
 
float infrict
 
char namedVG_Spring_K [64]
 
char _pad1 [6]
 
char local
 
char solverflags
 
SBVertex ** keys
 
int totpointkey
 
int totkey
 
float secondspring
 
float colball
 
float balldamp
 
float ballstiff
 
short sbc_mode
 
short aeroedge
 
short minloops
 
short maxloops
 
short choke
 
short solver_ID
 
short plastic
 
short springpreload
 
struct SBScratchscratch
 
float shearstiff
 
float inpush
 
struct SoftBody_Sharedshared
 
struct PointCache *pointcache DNA_DEPRECATED
 
struct ListBase ptcaches DNA_DEPRECATED
 
struct Collectioncollision_group
 
struct EffectorWeightseffector_weights
 
float lcom [3]
 
float lrot [3][3]
 
float lscale [3][3]
 
int last_frame
 

Detailed Description

Definition at line 191 of file DNA_object_force_types.h.

Member Data Documentation

◆ _pad

char SoftBody::_pad

Definition at line 198 of file DNA_object_force_types.h.

◆ _pad1

char SoftBody::_pad1[6]

Definition at line 256 of file DNA_object_force_types.h.

◆ aeroedge

short SoftBody::aeroedge

◆ balldamp

float SoftBody::balldamp

Cooling down collision response.

Definition at line 272 of file DNA_object_force_types.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), and sbNew().

◆ ballstiff

float SoftBody::ballstiff

Pressure the ball is loaded with.

Definition at line 274 of file DNA_object_force_types.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), and sbNew().

◆ bpoint

struct BodyPoint* SoftBody::bpoint

◆ bspring

struct BodySpring* SoftBody::bspring

◆ choke

short SoftBody::choke

◆ colball

float SoftBody::colball

Fixed collision ball size if > 0.

Definition at line 270 of file DNA_object_force_types.h.

Referenced by calculate_collision_balls(), and sbNew().

◆ collision_group

struct Collection* SoftBody::collision_group

◆ defgoal

float SoftBody::defgoal

Default goal for vertices without vgroup.

Definition at line 231 of file DNA_object_force_types.h.

Referenced by blo_do_versions_pre250(), lattice_to_softbody(), mesh_to_softbody(), renew_softbody(), and sbNew().

◆ DNA_DEPRECATED [1/2]

struct PointCache* pointcache SoftBody::DNA_DEPRECATED

Moved to SoftBody_Shared.

Definition at line 291 of file DNA_object_force_types.h.

◆ DNA_DEPRECATED [2/2]

struct ListBase ptcaches SoftBody::DNA_DEPRECATED

Moved to SoftBody_Shared.

Definition at line 291 of file DNA_object_force_types.h.

◆ effector_weights

struct EffectorWeights* SoftBody::effector_weights

◆ fuzzyness

short SoftBody::fuzzyness

Definition at line 240 of file DNA_object_force_types.h.

Referenced by softbody_apply_forces().

◆ goalfrict

float SoftBody::goalfrict

Softbody goal springs friction.

Definition at line 226 of file DNA_object_force_types.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), and sbNew().

◆ goalspring

float SoftBody::goalspring

Softbody goal springs.

Definition at line 224 of file DNA_object_force_types.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), and sbNew().

◆ grav

float SoftBody::grav

Softbody amount of gravitation to apply.

Definition at line 214 of file DNA_object_force_types.h.

Referenced by blo_do_versions_250(), and sbNew().

◆ infrict

float SoftBody::infrict

Softbody inner springs friction.

Definition at line 246 of file DNA_object_force_types.h.

Referenced by sb_spring_force(), and sbNew().

◆ inpush

float SoftBody::inpush

Definition at line 287 of file DNA_object_force_types.h.

Referenced by blo_do_versions_pre250(), sb_spring_force(), and sbNew().

◆ inspring

float SoftBody::inspring

Softbody inner springs.

Definition at line 244 of file DNA_object_force_types.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), blo_do_versions_pre250(), sb_spring_force(), and sbNew().

◆ keys

SBVertex** SoftBody::keys

Array of size totpointkey.

Definition at line 262 of file DNA_object_force_types.h.

Referenced by BKE_object_copy_softbody(), blo_do_versions_pre250(), free_softbody_baked(), and object_blend_read_data().

◆ last_frame

int SoftBody::last_frame

Definition at line 303 of file DNA_object_force_types.h.

Referenced by sbNew(), sbObjectStep(), and sbStoreLastFrame().

◆ lcom

float SoftBody::lcom[3]

◆ local

char SoftBody::local

Local==1: use local coords for baking.

Definition at line 258 of file DNA_object_force_types.h.

Referenced by sbObjectStep().

◆ lrot

float SoftBody::lrot[3][3]

◆ lscale

float SoftBody::lscale[3][3]

◆ maxgoal

float SoftBody::maxgoal

Definition at line 229 of file DNA_object_force_types.h.

Referenced by _final_goal(), and sbNew().

◆ maxloops

short SoftBody::maxloops

Definition at line 278 of file DNA_object_force_types.h.

Referenced by sbNew(), and softbody_step().

◆ mediafrict

float SoftBody::mediafrict

Friction to env.

Definition at line 216 of file DNA_object_force_types.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), and sbNew().

◆ mingoal

float SoftBody::mingoal

Quick limits for goal.

Definition at line 228 of file DNA_object_force_types.h.

Referenced by _final_goal(), and sbNew().

◆ minloops

short SoftBody::minloops

Definition at line 277 of file DNA_object_force_types.h.

Referenced by sbNew(), and softbody_step().

◆ msg_lock

char SoftBody::msg_lock

Definition at line 199 of file DNA_object_force_types.h.

◆ msg_value

short SoftBody::msg_value

Definition at line 200 of file DNA_object_force_types.h.

◆ namedVG_Mass

char SoftBody::namedVG_Mass[64]

Along with it introduce mass painting starting to fix old bug .. nastiness that VG are indexes rather find them by name tag to find it -> jow20090613. MAX_VGROUP_NAME

Definition at line 212 of file DNA_object_force_types.h.

Referenced by lattice_to_softbody(), and mesh_to_softbody().

◆ namedVG_Softgoal

char SoftBody::namedVG_Softgoal[64]

Starting to fix old bug .. nastiness that VG are indexes rather find them by name tag to find it -> jow20090613. MAX_VGROUP_NAME

Definition at line 238 of file DNA_object_force_types.h.

◆ namedVG_Spring_K

char SoftBody::namedVG_Spring_K[64]

Along with it introduce Spring_K painting starting to fix old bug .. nastiness that VG are indexes rather find them by name tag to find it -> jow20090613. MAX_VGROUP_NAME

Definition at line 253 of file DNA_object_force_types.h.

Referenced by lattice_to_softbody(), and mesh_to_softbody().

◆ nodemass

float SoftBody::nodemass

Softbody mass of vertex.

Definition at line 206 of file DNA_object_force_types.h.

Referenced by _final_mass(), sbNew(), and softbody_apply_forces().

◆ physics_speed

float SoftBody::physics_speed

User control over simulation speed.

Definition at line 220 of file DNA_object_force_types.h.

Referenced by blo_do_versions_pre250(), sb_time_scale(), and sbNew().

◆ plastic

short SoftBody::plastic

Definition at line 281 of file DNA_object_force_types.h.

Referenced by apply_spring_memory(), and softbody_step().

◆ rklimit

float SoftBody::rklimit

Error limit for ODE solver.

Definition at line 218 of file DNA_object_force_types.h.

Referenced by sbNew(), and softbody_step().

◆ sbc_mode

short SoftBody::sbc_mode

Definition at line 275 of file DNA_object_force_types.h.

Referenced by calculate_collision_balls(), and sbNew().

◆ scratch

struct SBScratch* SoftBody::scratch

◆ secondspring

float SoftBody::secondspring

Definition at line 266 of file DNA_object_force_types.h.

Referenced by mesh_to_softbody(), and sb_spring_force().

◆ shared

struct SoftBody_Shared* SoftBody::shared

◆ shearstiff

float SoftBody::shearstiff

Definition at line 286 of file DNA_object_force_types.h.

Referenced by blo_do_versions_pre250(), sb_spring_force(), and sbNew().

◆ solver_ID

short SoftBody::solver_ID

Definition at line 280 of file DNA_object_force_types.h.

Referenced by softbody_step().

◆ solverflags

char SoftBody::solverflags

◆ springpreload

short SoftBody::springpreload

Definition at line 282 of file DNA_object_force_types.h.

Referenced by springs_from_mesh().

◆ totkey

int SoftBody::totkey

◆ totpoint

int SoftBody::totpoint

◆ totpointkey

int SoftBody::totpointkey

If totpointkey != totpoint or totkey!- (efra-sfra)/interval -> free keys.

Definition at line 264 of file DNA_object_force_types.h.

Referenced by BKE_object_copy_softbody().

◆ totspring

int SoftBody::totspring

◆ vertgroup

short SoftBody::vertgroup

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