|
Blender
V3.3
|
#include "LinearMath/btVector3.h"#include "btTypedConstraint.h"#include "btGeneric6DofConstraint.h"Go to the source code of this file.
Classes | |
| struct | btGeneric6DofSpringConstraintData |
| struct | btGeneric6DofSpringConstraintDoubleData2 |
Macros | |
| #define | btGeneric6DofSpringConstraintData2 btGeneric6DofSpringConstraintData |
| #define | btGeneric6DofSpringConstraintDataName "btGeneric6DofSpringConstraintData" |
Variables | |
| btGeneric6DofSpringConstraint | __pad0__ |
| Generic 6 DOF constraint that allows to set spring motors to any translational and rotational DOF. More... | |
| btScalar | m_equilibriumPoint [6] |
| btScalar | m_springStiffness [6] |
| btScalar | m_springDamping [6] |
| #define btGeneric6DofSpringConstraintData2 btGeneric6DofSpringConstraintData |
Definition at line 27 of file btGeneric6DofSpringConstraint.h.
| #define btGeneric6DofSpringConstraintDataName "btGeneric6DofSpringConstraintData" |
Definition at line 28 of file btGeneric6DofSpringConstraint.h.
| BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
| btGeneric6DofSpringConstraint::btGeneric6DofSpringConstraint | ( | btRigidBody & | rbA, |
| btRigidBody & | rbB, | ||
| const btTransform & | frameInA, | ||
| const btTransform & | frameInB, | ||
| bool | useLinearReferenceFrameA | ||
| ) |
Definition at line 20 of file btGeneric6DofSpringConstraint.cpp.
References init.
Referenced by RB_constraint_new_6dof_spring(), RB_constraint_set_damping_6dof_spring(), RB_constraint_set_equilibrium_6dof_spring(), RB_constraint_set_spring_6dof_spring(), and RB_constraint_set_stiffness_6dof_spring().
| btGeneric6DofSpringConstraint::btGeneric6DofSpringConstraint | ( | btRigidBody & | rbB, |
| const btTransform & | frameInB, | ||
| bool | useLinearReferenceFrameB | ||
| ) |
Definition at line 26 of file btGeneric6DofSpringConstraint.cpp.
References init.
|
virtual |
| btScalar getDamping | ( | int | index | ) | const |
Definition at line 74 of file btGeneric6DofSpringConstraint.h.
References m_springDamping.
| btScalar getEquilibriumPoint | ( | int | index | ) | const |
Definition at line 79 of file btGeneric6DofSpringConstraint.h.
References m_equilibriumPoint.
|
virtual |
| btScalar getStiffness | ( | int | index | ) | const |
Definition at line 69 of file btGeneric6DofSpringConstraint.h.
References m_springStiffness.
| void init | ( | ) |
Definition at line 28 of file workbench_effect_antialiasing.c.
Referenced by GHOST_ContextCGL::activateDrawingContext(), blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), BKE_mesh_minmax(), btConeTwistConstraint(), btGeneric6DofSpringConstraint(), btSymMatrix< T >::btSymMatrix(), Buffer_new(), blender::bke::calculate_type_counts(), Freestyle::Canvas::Canvas(), deformVerts(), ED_area_type_hud_ensure(), blender::ed::sculpt_paint::find_curves_brush_position(), blender::gpu::MTLContext::generate_sampler_from_state(), GHOST_DisplayManagerCocoa::getCurrentDisplaySetting(), GHOST_DisplayManagerCocoa::getDisplaySetting(), GHOST_DisplayManagerCocoa::getNumDisplays(), GHOST_ContextCGL::getSwapInterval(), ghost_fatal_error_dialog(), gpencil_add_new_points(), gpencil_convert_spline(), gpencil_erase_processed_area(), heapsimple_down(), load_tex(), load_tex_cursor(), blender::bounds::min_max(), blender::bounds::min_max_with_radii(), blender::gpu::MTLFrameBuffer::MTLFrameBuffer(), osx_user_locale(), pygpu_buffer__tp_new(), GHOST_ContextCGL::releaseDrawingContext(), blender::gpu::MTLBackend::render_begin(), btSymMatrix< T >::resize(), GHOST_ContextCGL::setSwapInterval(), snap_object_data_editmesh_get(), snap_object_data_mesh_get(), GHOST_ContextCGL::swapBuffers(), GHOST_ContextCGL::updateDrawingContext(), WM_tooltip_immediate_init(), WM_tooltip_timer_init(), and WM_tooltip_timer_init_ex().
| void btGeneric6DofSpringConstraint::internalUpdateSprings | ( | btConstraintInfo2 * | info | ) |
Definition at line 106 of file btGeneric6DofSpringConstraint.cpp.
References btFabs(), btConstraintInfo2::fps, m_angularLimits, m_calculatedAxisAngleDiff, m_calculatedLinearDiff, m_equilibriumPoint, m_linearLimits, btRotationalLimitMotor::m_maxMotorForce, btTranslationalLimitMotor::m_maxMotorForce, btConstraintInfo2::m_numIterations, m_springDamping, m_springStiffness, btRotationalLimitMotor::m_targetVelocity, and btTranslationalLimitMotor::m_targetVelocity.
| bool isSpringEnabled | ( | int | index | ) | const |
Definition at line 64 of file btGeneric6DofSpringConstraint.h.
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
| void setEquilibriumPoint | ( | ) |
| void setEquilibriumPoint | ( | int | index | ) |
Definition at line 59 of file btGeneric6DofSpringConstraint.cpp.
References btAssert, and m_springStiffness.
| btGeneric6DofSpringConstraint __pad0__ |
Generic 6 DOF constraint that allows to set spring motors to any translational and rotational DOF.
DOF index used in enableSpring() and setStiffness() means: 0 : translation X 1 : translation Y 2 : translation Z 3 : rotation X (3rd Euler rotational around new position of X axis, range [-PI+epsilon, PI-epsilon] ) 4 : rotation Y (2nd Euler rotational around new position of Y axis, range [-PI/2+epsilon, PI/2-epsilon] ) 5 : rotation Z (1st Euler rotational around Z axis, range [-PI+epsilon, PI-epsilon] )
Definition at line 42 of file btGeneric6DofSpringConstraint.h.
| btScalar m_equilibriumPoint[6] |
Definition at line 46 of file btGeneric6DofSpringConstraint.h.
Referenced by getEquilibriumPoint(), internalUpdateSprings(), and setEquilibriumPoint().
| btScalar m_springDamping[6] |
Definition at line 48 of file btGeneric6DofSpringConstraint.h.
Referenced by getDamping(), and internalUpdateSprings().
| btScalar m_springStiffness[6] |
Definition at line 47 of file btGeneric6DofSpringConstraint.h.
Referenced by getStiffness(), internalUpdateSprings(), and setStiffness().