Panda3D
Public Types | Public Member Functions | Public Attributes | List of all members
BulletSoftBodyConfig Class Reference

Public Types

enum  AeroModel {
  AM_vertex_point = 0, AM_vertex_two_sided = 1, AM_vertex_one_sided = 2, AM_face_two_sided = 3,
  AM_face_one_sided = 4
}
 
enum  CollisionFlag {
  CF_rigid_vs_soft_mask = 15, CF_sdf_rigid_soft = 1, CF_cluster_rigid_soft = 2, CF_soft_vs_soft_mask = 48,
  CF_vertex_face_soft_soft = 16, CF_cluster_soft_soft = 32, CF_cluster_self = 64
}
 

Public Member Functions

 __init__ (const BulletSoftBodyConfig)
 
 clearAllCollisionFlags ()
 
BulletSoftBodyConfig::AeroModel getAeroModel ()
 
float getAnchorsHardness ()
 Getter for property kAHR. More...
 
int getClusterSolverIterations ()
 Getter for property citerations. More...
 
bool getCollisionFlag (BulletSoftBodyConfig::CollisionFlag flag)
 
float getDampingCoefficient ()
 Getter for property kDP. More...
 
float getDragCoefficient ()
 Getter for property kDG. More...
 
int getDriftSolverIterations ()
 Getter for property diterations. More...
 
float getDynamicFrictionCoefficient ()
 Getter for property kDF. More...
 
float getKineticContactsHardness ()
 Getter for property kKHR. More...
 
float getLiftCoefficient ()
 Getter for property kLF. More...
 
float getMaxvolume ()
 Getter for property maxvolume. More...
 
float getPoseMatchingCoefficient ()
 Getter for property kMT. More...
 
int getPositionsSolverIterations ()
 Getter for property piterations. More...
 
float getPressureCoefficient ()
 Getter for property kPR. More...
 
float getRigidContactsHardness ()
 Getter for property kCHR. More...
 
float getSoftContactsHardness ()
 Getter for property kSHR. More...
 
float getSoftVsKineticHardness ()
 Getter for property kSKHR_CL. More...
 
float getSoftVsKineticImpulseSplit ()
 Getter for property kSK_SPLT_CL. More...
 
float getSoftVsRigidHardness ()
 Getter for property kSRHR_CL. More...
 
float getSoftVsRigidImpulseSplit ()
 Getter for property kSR_SPLT_CL. More...
 
float getSoftVsSoftHardness ()
 Getter for property kSSHR_CL. More...
 
float getSoftVsSoftImpulseSplit ()
 Getter for property kSS_SPLT_CL. More...
 
float getTimescale ()
 Getter for property timescale. More...
 
float getVelocitiesCorrectionFactor ()
 Getter for property kVCF. More...
 
int getVelocitiesSolverIterations ()
 Getter for property viterations. More...
 
float getVolumeConservationCoefficient ()
 Getter for property kVC. More...
 
 setAeroModel (BulletSoftBodyConfig::AeroModel value)
 
 setAnchorsHardness (float value)
 Setter for property kAHR. More...
 
 setClusterSolverIterations (int value)
 Setter for property citerations. More...
 
 setCollisionFlag (BulletSoftBodyConfig::CollisionFlag flag, bool value)
 
 setDampingCoefficient (float value)
 Setter for property kDP. More...
 
 setDragCoefficient (float value)
 Setter for property kDG. More...
 
 setDriftSolverIterations (int value)
 Setter for property diterations. More...
 
 setDynamicFrictionCoefficient (float value)
 Setter for property kDF. More...
 
 setKineticContactsHardness (float value)
 Setter for property kKHR. More...
 
 setLiftCoefficient (float value)
 Setter for property kLF. More...
 
 setMaxvolume (float value)
 Setter for property maxvolume. More...
 
 setPoseMatchingCoefficient (float value)
 Setter for property kMT. More...
 
 setPositionsSolverIterations (int value)
 Setter for property piterations. More...
 
 setPressureCoefficient (float value)
 Setter for property kPR. More...
 
 setRigidContactsHardness (float value)
 Setter for property kCHR. More...
 
 setSoftContactsHardness (float value)
 Setter for property kSHR. More...
 
 setSoftVsKineticHardness (float value)
 Setter for property kSKHR_CL. More...
 
 setSoftVsKineticImpulseSplit (float value)
 Setter for property kSK_SPLT_CL. More...
 
 setSoftVsRigidHardness (float value)
 Setter for property kSRHR_CL. More...
 
 setSoftVsRigidImpulseSplit (float value)
 Setter for property kSR_SPLT_CL. More...
 
 setSoftVsSoftHardness (float value)
 Setter for property kSSHR_CL. More...
 
 setSoftVsSoftImpulseSplit (float value)
 Setter for property kSS_SPLT_CL. More...
 
 setTimescale (float value)
 Setter for property timescale. More...
 
 setVelocitiesCorrectionFactor (float value)
 Setter for property kVCF. More...
 
 setVelocitiesSolverIterations (int value)
 Setter for property viterations. More...
 
 setVolumeConservationCoefficient (float value)
 Setter for property kVC. More...
 

Public Attributes

BulletSoftBodyConfig::AeroModel aero_model
 
float anchors_hardness
 Getter for property kAHR. More...
 
int cluster_solver_iterations
 Getter for property citerations. More...
 
float damping_coefficient
 Getter for property kDP. More...
 
float drag_coefficient
 Getter for property kDG. More...
 
int drift_solver_iterations
 Getter for property diterations. More...
 
float dynamic_friction_coefficient
 Getter for property kDF. More...
 
float kinetic_contacts_hardness
 Getter for property kKHR. More...
 
float lift_coefficient
 Getter for property kLF. More...
 
float maxvolume
 Getter for property maxvolume. More...
 
float pose_matching_coefficient
 Getter for property kMT. More...
 
int positions_solver_iterations
 Getter for property piterations. More...
 
float pressure_coefficient
 Getter for property kPR. More...
 
float rigid_contacts_hardness
 Getter for property kCHR. More...
 
float soft_contacts_hardness
 Getter for property kSHR. More...
 
float soft_vs_kinetic_hardness
 Getter for property kSKHR_CL. More...
 
float soft_vs_kinetic_impulse_split
 Getter for property kSK_SPLT_CL. More...
 
float soft_vs_rigid_hardness
 Getter for property kSRHR_CL. More...
 
float soft_vs_rigid_impulse_split
 Getter for property kSR_SPLT_CL. More...
 
float soft_vs_soft_hardness
 Getter for property kSSHR_CL. More...
 
float soft_vs_soft_impulse_split
 Getter for property kSS_SPLT_CL. More...
 
float timescale
 Getter for property timescale. More...
 
float velocities_correction_factor
 Getter for property kVCF. More...
 
int velocities_solver_iterations
 Getter for property viterations. More...
 
float volume_conservation_coefficient
 Getter for property kVC. More...
 

Member Enumeration Documentation

◆ AeroModel

enum AeroModel
Enumerator
AM_vertex_point 

V_Point: Vertex normals are oriented toward velocity.

AM_vertex_two_sided 

V_TwoSided: Vertex normals are fliped to match velocity.

AM_vertex_one_sided 

V_OneSided: Vertex normals are taken as it is.

AM_face_two_sided 

F_TwoSided: Face normals are fliped to match velocity.

AM_face_one_sided 

F_OneSided: Face normals are taken as it is.

◆ CollisionFlag

Enumerator
CF_rigid_vs_soft_mask 

RVSmask: Rigid versus soft mask.

CF_sdf_rigid_soft 

SDF_RS: SDF based rigid vs soft.

CF_cluster_rigid_soft 

CL_RS: Cluster vs convex rigid vs soft.

CF_soft_vs_soft_mask 

SVSmask: Soft versus soft mask.

CF_vertex_face_soft_soft 

VF_SS: Vertex vs face soft vs soft handling.

CF_cluster_soft_soft 

CL_SS: Cluster vs cluster soft vs soft handling.

CF_cluster_self 

CL_SELF: Cluster soft body self collision.

Member Function Documentation

◆ __init__()

__init__ ( const  BulletSoftBodyConfig)

◆ clearAllCollisionFlags()

clearAllCollisionFlags ( )

◆ getAeroModel()

◆ getAnchorsHardness()

float getAnchorsHardness ( )

Getter for property kAHR.

◆ getClusterSolverIterations()

int getClusterSolverIterations ( )

Getter for property citerations.

◆ getCollisionFlag()

bool getCollisionFlag ( BulletSoftBodyConfig::CollisionFlag  flag)

◆ getDampingCoefficient()

float getDampingCoefficient ( )

Getter for property kDP.

◆ getDragCoefficient()

float getDragCoefficient ( )

Getter for property kDG.

◆ getDriftSolverIterations()

int getDriftSolverIterations ( )

Getter for property diterations.

◆ getDynamicFrictionCoefficient()

float getDynamicFrictionCoefficient ( )

Getter for property kDF.

◆ getKineticContactsHardness()

float getKineticContactsHardness ( )

Getter for property kKHR.

◆ getLiftCoefficient()

float getLiftCoefficient ( )

Getter for property kLF.

◆ getMaxvolume()

float getMaxvolume ( )

Getter for property maxvolume.

◆ getPoseMatchingCoefficient()

float getPoseMatchingCoefficient ( )

Getter for property kMT.

◆ getPositionsSolverIterations()

int getPositionsSolverIterations ( )

Getter for property piterations.

◆ getPressureCoefficient()

float getPressureCoefficient ( )

Getter for property kPR.

◆ getRigidContactsHardness()

float getRigidContactsHardness ( )

Getter for property kCHR.

◆ getSoftContactsHardness()

float getSoftContactsHardness ( )

Getter for property kSHR.

◆ getSoftVsKineticHardness()

float getSoftVsKineticHardness ( )

Getter for property kSKHR_CL.

◆ getSoftVsKineticImpulseSplit()

float getSoftVsKineticImpulseSplit ( )

Getter for property kSK_SPLT_CL.

◆ getSoftVsRigidHardness()

float getSoftVsRigidHardness ( )

Getter for property kSRHR_CL.

◆ getSoftVsRigidImpulseSplit()

float getSoftVsRigidImpulseSplit ( )

Getter for property kSR_SPLT_CL.

◆ getSoftVsSoftHardness()

float getSoftVsSoftHardness ( )

Getter for property kSSHR_CL.

◆ getSoftVsSoftImpulseSplit()

float getSoftVsSoftImpulseSplit ( )

Getter for property kSS_SPLT_CL.

◆ getTimescale()

float getTimescale ( )

Getter for property timescale.

◆ getVelocitiesCorrectionFactor()

float getVelocitiesCorrectionFactor ( )

Getter for property kVCF.

◆ getVelocitiesSolverIterations()

int getVelocitiesSolverIterations ( )

Getter for property viterations.

◆ getVolumeConservationCoefficient()

float getVolumeConservationCoefficient ( )

Getter for property kVC.

◆ setAeroModel()

setAeroModel ( BulletSoftBodyConfig::AeroModel  value)

◆ setAnchorsHardness()

setAnchorsHardness ( float  value)

Setter for property kAHR.

◆ setClusterSolverIterations()

setClusterSolverIterations ( int  value)

Setter for property citerations.

◆ setCollisionFlag()

setCollisionFlag ( BulletSoftBodyConfig::CollisionFlag  flag,
bool  value 
)

◆ setDampingCoefficient()

setDampingCoefficient ( float  value)

Setter for property kDP.

◆ setDragCoefficient()

setDragCoefficient ( float  value)

Setter for property kDG.

◆ setDriftSolverIterations()

setDriftSolverIterations ( int  value)

Setter for property diterations.

◆ setDynamicFrictionCoefficient()

setDynamicFrictionCoefficient ( float  value)

Setter for property kDF.

◆ setKineticContactsHardness()

setKineticContactsHardness ( float  value)

Setter for property kKHR.

◆ setLiftCoefficient()

setLiftCoefficient ( float  value)

Setter for property kLF.

◆ setMaxvolume()

setMaxvolume ( float  value)

Setter for property maxvolume.

◆ setPoseMatchingCoefficient()

setPoseMatchingCoefficient ( float  value)

Setter for property kMT.

◆ setPositionsSolverIterations()

setPositionsSolverIterations ( int  value)

Setter for property piterations.

◆ setPressureCoefficient()

setPressureCoefficient ( float  value)

Setter for property kPR.

◆ setRigidContactsHardness()

setRigidContactsHardness ( float  value)

Setter for property kCHR.

◆ setSoftContactsHardness()

setSoftContactsHardness ( float  value)

Setter for property kSHR.

◆ setSoftVsKineticHardness()

setSoftVsKineticHardness ( float  value)

Setter for property kSKHR_CL.

◆ setSoftVsKineticImpulseSplit()

setSoftVsKineticImpulseSplit ( float  value)

Setter for property kSK_SPLT_CL.

◆ setSoftVsRigidHardness()

setSoftVsRigidHardness ( float  value)

Setter for property kSRHR_CL.

◆ setSoftVsRigidImpulseSplit()

setSoftVsRigidImpulseSplit ( float  value)

Setter for property kSR_SPLT_CL.

◆ setSoftVsSoftHardness()

setSoftVsSoftHardness ( float  value)

Setter for property kSSHR_CL.

◆ setSoftVsSoftImpulseSplit()

setSoftVsSoftImpulseSplit ( float  value)

Setter for property kSS_SPLT_CL.

◆ setTimescale()

setTimescale ( float  value)

Setter for property timescale.

◆ setVelocitiesCorrectionFactor()

setVelocitiesCorrectionFactor ( float  value)

Setter for property kVCF.

◆ setVelocitiesSolverIterations()

setVelocitiesSolverIterations ( int  value)

Setter for property viterations.

◆ setVolumeConservationCoefficient()

setVolumeConservationCoefficient ( float  value)

Setter for property kVC.

Member Data Documentation

◆ aero_model

◆ anchors_hardness

float anchors_hardness

Getter for property kAHR.

◆ cluster_solver_iterations

int cluster_solver_iterations

Getter for property citerations.

◆ damping_coefficient

float damping_coefficient

Getter for property kDP.

◆ drag_coefficient

float drag_coefficient

Getter for property kDG.

◆ drift_solver_iterations

int drift_solver_iterations

Getter for property diterations.

◆ dynamic_friction_coefficient

float dynamic_friction_coefficient

Getter for property kDF.

◆ kinetic_contacts_hardness

float kinetic_contacts_hardness

Getter for property kKHR.

◆ lift_coefficient

float lift_coefficient

Getter for property kLF.

◆ maxvolume

float maxvolume

Getter for property maxvolume.

◆ pose_matching_coefficient

float pose_matching_coefficient

Getter for property kMT.

◆ positions_solver_iterations

int positions_solver_iterations

Getter for property piterations.

◆ pressure_coefficient

float pressure_coefficient

Getter for property kPR.

◆ rigid_contacts_hardness

float rigid_contacts_hardness

Getter for property kCHR.

◆ soft_contacts_hardness

float soft_contacts_hardness

Getter for property kSHR.

◆ soft_vs_kinetic_hardness

float soft_vs_kinetic_hardness

Getter for property kSKHR_CL.

◆ soft_vs_kinetic_impulse_split

float soft_vs_kinetic_impulse_split

Getter for property kSK_SPLT_CL.

◆ soft_vs_rigid_hardness

float soft_vs_rigid_hardness

Getter for property kSRHR_CL.

◆ soft_vs_rigid_impulse_split

float soft_vs_rigid_impulse_split

Getter for property kSR_SPLT_CL.

◆ soft_vs_soft_hardness

float soft_vs_soft_hardness

Getter for property kSSHR_CL.

◆ soft_vs_soft_impulse_split

float soft_vs_soft_impulse_split

Getter for property kSS_SPLT_CL.

◆ timescale

float timescale

Getter for property timescale.

◆ velocities_correction_factor

float velocities_correction_factor

Getter for property kVCF.

◆ velocities_solver_iterations

int velocities_solver_iterations

Getter for property viterations.

◆ volume_conservation_coefficient

float volume_conservation_coefficient

Getter for property kVC.