Blender V5.0
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 188 of file DNA_object_force_types.h.

Member Data Documentation

◆ _pad

char SoftBody::_pad

Definition at line 195 of file DNA_object_force_types.h.

◆ _pad1

char SoftBody::_pad1[6]

Definition at line 251 of file DNA_object_force_types.h.

◆ aeroedge

short SoftBody::aeroedge

◆ balldamp

float SoftBody::balldamp

Cooling down collision response.

Definition at line 267 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 269 of file DNA_object_force_types.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), and sbNew().

◆ bpoint

◆ bspring

◆ choke

short SoftBody::choke

◆ colball

float SoftBody::colball

Fixed collision ball size if > 0.

Definition at line 265 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 227 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 ListBase ptcaches SoftBody::DNA_DEPRECATED

Moved to SoftBody_Shared.

Definition at line 288 of file DNA_object_force_types.h.

◆ DNA_DEPRECATED [2/2]

struct PointCache* pointcache SoftBody::DNA_DEPRECATED

Moved to SoftBody_Shared.

Definition at line 286 of file DNA_object_force_types.h.

◆ effector_weights

◆ fuzzyness

short SoftBody::fuzzyness

Definition at line 236 of file DNA_object_force_types.h.

Referenced by sbNew(), and softbody_apply_forces().

◆ goalfrict

float SoftBody::goalfrict

Softbody goal springs friction.

Definition at line 222 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 220 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 210 of file DNA_object_force_types.h.

Referenced by sbNew().

◆ infrict

float SoftBody::infrict

Softbody inner springs friction.

Definition at line 242 of file DNA_object_force_types.h.

Referenced by sb_spring_force(), and sbNew().

◆ inpush

float SoftBody::inpush

Definition at line 282 of file DNA_object_force_types.h.

Referenced by sb_spring_force(), and sbNew().

◆ inspring

float SoftBody::inspring

Softbody inner springs.

Definition at line 240 of file DNA_object_force_types.h.

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

◆ keys

SBVertex** SoftBody::keys

◆ last_frame

int SoftBody::last_frame

Definition at line 298 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 253 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 225 of file DNA_object_force_types.h.

Referenced by _final_goal(), and sbNew().

◆ maxloops

short SoftBody::maxloops

Definition at line 273 of file DNA_object_force_types.h.

Referenced by sbNew(), and softbody_step().

◆ mediafrict

float SoftBody::mediafrict

Friction to env.

Definition at line 212 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 224 of file DNA_object_force_types.h.

Referenced by _final_goal(), and sbNew().

◆ minloops

short SoftBody::minloops

Definition at line 272 of file DNA_object_force_types.h.

Referenced by sbNew(), and softbody_step().

◆ msg_lock

char SoftBody::msg_lock

Definition at line 196 of file DNA_object_force_types.h.

◆ msg_value

short SoftBody::msg_value

Definition at line 197 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.

Definition at line 208 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.

Definition at line 234 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.

Definition at line 248 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 203 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 216 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 276 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 214 of file DNA_object_force_types.h.

Referenced by sbNew(), and softbody_step().

◆ sbc_mode

short SoftBody::sbc_mode

Definition at line 270 of file DNA_object_force_types.h.

Referenced by calculate_collision_balls(), and sbNew().

◆ scratch

◆ secondspring

float SoftBody::secondspring

Definition at line 261 of file DNA_object_force_types.h.

Referenced by mesh_to_softbody(), and sb_spring_force().

◆ shared

◆ shearstiff

float SoftBody::shearstiff

Definition at line 281 of file DNA_object_force_types.h.

Referenced by sb_spring_force(), and sbNew().

◆ solver_ID

short SoftBody::solver_ID

Definition at line 275 of file DNA_object_force_types.h.

Referenced by softbody_step().

◆ solverflags

char SoftBody::solverflags

◆ springpreload

short SoftBody::springpreload

Definition at line 277 of file DNA_object_force_types.h.

Referenced by springs_from_mesh().

◆ totkey

◆ totpoint

◆ totpointkey

int SoftBody::totpointkey

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

Definition at line 259 of file DNA_object_force_types.h.

Referenced by BKE_object_copy_softbody().

◆ totspring

◆ vertgroup

short SoftBody::vertgroup

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