|
Blender V4.5
|
Go to the source code of this file.
Classes | |
| struct | btConeTwistConstraintDoubleData |
| struct | btConeTwistConstraintData |
| this structure is not used, except for loading pre-2.82 .bullet files More... | |
Macros | |
| #define | btConeTwistConstraintData2 btConeTwistConstraintData |
| #define | btConeTwistConstraintDataName "btConeTwistConstraintData" |
Enumerations | |
| enum | btConeTwistFlags { BT_CONETWIST_FLAGS_LIN_CFM = 1 , BT_CONETWIST_FLAGS_LIN_ERP = 2 , BT_CONETWIST_FLAGS_ANG_CFM = 4 } |
Functions | |
| void | init () |
| void | computeConeLimitInfo (const btQuaternion &qCone, btScalar &swingAngle, btVector3 &vSwingAxis, btScalar &swingLimit) |
| void | computeTwistLimitInfo (const btQuaternion &qTwist, btScalar &twistAngle, btVector3 &vTwistAxis) |
| void | adjustSwingAxisToUseEllipseNormal (btVector3 &vSwingAxis) const |
| BT_DECLARE_ALIGNED_ALLOCATOR () | |
| btConeTwistConstraint (btRigidBody &rbA, btRigidBody &rbB, const btTransform &rbAFrame, const btTransform &rbBFrame) | |
| btConeTwistConstraint (btRigidBody &rbA, const btTransform &rbAFrame) | |
| virtual void | buildJacobian () |
| virtual void | getInfo1 (btConstraintInfo1 *info) |
| void | getInfo1NonVirtual (btConstraintInfo1 *info) |
| virtual void | getInfo2 (btConstraintInfo2 *info) |
| void | getInfo2NonVirtual (btConstraintInfo2 *info, const btTransform &transA, const btTransform &transB, const btMatrix3x3 &invInertiaWorldA, const btMatrix3x3 &invInertiaWorldB) |
| virtual void | solveConstraintObsolete (btSolverBody &bodyA, btSolverBody &bodyB, btScalar timeStep) |
| internal method used by the constraint solver, don't use them directly | |
| void | updateRHS (btScalar timeStep) |
| const btRigidBody & | getRigidBodyA () const |
| const btRigidBody & | getRigidBodyB () const |
| void | setAngularOnly (bool angularOnly) |
| bool | getAngularOnly () const |
| void | setLimit (int limitIndex, btScalar limitValue) |
| btScalar | getLimit (int limitIndex) const |
| void | setLimit (btScalar _swingSpan1, btScalar _swingSpan2, btScalar _twistSpan, btScalar _softness=1.f, btScalar _biasFactor=0.3f, btScalar _relaxationFactor=1.0f) |
| const btTransform & | getAFrame () const |
| const btTransform & | getBFrame () const |
| int | getSolveTwistLimit () |
| int | getSolveSwingLimit () |
| btScalar | getTwistLimitSign () |
| void | calcAngleInfo () |
| void | calcAngleInfo2 (const btTransform &transA, const btTransform &transB, const btMatrix3x3 &invInertiaWorldA, const btMatrix3x3 &invInertiaWorldB) |
| btScalar | getSwingSpan1 () const |
| btScalar | getSwingSpan2 () const |
| btScalar | getTwistSpan () const |
| btScalar | getLimitSoftness () const |
| btScalar | getBiasFactor () const |
| btScalar | getRelaxationFactor () const |
| btScalar | getTwistAngle () const |
| bool | isPastSwingLimit () |
| btScalar | getDamping () const |
| void | setDamping (btScalar damping) |
| void | enableMotor (bool b) |
| bool | isMotorEnabled () const |
| btScalar | getMaxMotorImpulse () const |
| bool | isMaxMotorImpulseNormalized () const |
| void | setMaxMotorImpulse (btScalar maxMotorImpulse) |
| void | setMaxMotorImpulseNormalized (btScalar maxMotorImpulse) |
| btScalar | getFixThresh () |
| void | setFixThresh (btScalar fixThresh) |
| void | setMotorTarget (const btQuaternion &q) |
| const btQuaternion & | getMotorTarget () const |
| void | setMotorTargetInConstraintSpace (const btQuaternion &q) |
| btVector3 | GetPointForAngle (btScalar fAngleInRadians, btScalar fLength) const |
| virtual void | setParam (int num, btScalar value, int axis=-1) |
| virtual void | setFrames (const btTransform &frameA, const btTransform &frameB) |
| const btTransform & | getFrameOffsetA () const |
| const btTransform & | getFrameOffsetB () const |
| virtual btScalar | getParam (int num, int axis=-1) const |
| return the local value of parameter | |
| int | getFlags () const |
| virtual int | calculateSerializeBufferSize () const |
| virtual const char * | serialize (void *dataBuffer, btSerializer *serializer) const |
| fills the dataBuffer and returns the struct name (and 0 on failure) | |
| #define btConeTwistConstraintData2 btConeTwistConstraintData |
Definition at line 43 of file btConeTwistConstraint.h.
| #define btConeTwistConstraintDataName "btConeTwistConstraintData" |
Definition at line 44 of file btConeTwistConstraint.h.
| enum btConeTwistFlags |
| Enumerator | |
|---|---|
| BT_CONETWIST_FLAGS_LIN_CFM | |
| BT_CONETWIST_FLAGS_LIN_ERP | |
| BT_CONETWIST_FLAGS_ANG_CFM | |
Definition at line 49 of file btConeTwistConstraint.h.
|
protected |
Definition at line 929 of file btConeTwistConstraint.cpp.
References btVector3, fabs(), grad(), m_swingSpan1, m_swingSpan2, SIMD_EPSILON, y, and z().
Referenced by calcAngleInfo2(), and init().
| BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
References BT_DECLARE_ALIGNED_ALLOCATOR, btConeTwistConstraint(), btTransform, buildJacobian(), and rbB.
| btConeTwistConstraint::btConeTwistConstraint | ( | btRigidBody & | rbA, |
| btRigidBody & | rbB, | ||
| const btTransform & | rbAFrame, | ||
| const btTransform & | rbBFrame ) |
Definition at line 35 of file btConeTwistConstraint.cpp.
References btTransform, btTypedConstraint(), CONETWIST_CONSTRAINT_TYPE, CONETWIST_USE_OBSOLETE_SOLVER, false, init(), m_angularOnly, m_rbAFrame, m_rbBFrame, m_useSolveConstraintObsolete, and rbB.
Referenced by BT_DECLARE_ALIGNED_ALLOCATOR(), and debugDrawConstraint().
| btConeTwistConstraint::btConeTwistConstraint | ( | btRigidBody & | rbA, |
| const btTransform & | rbAFrame ) |
Definition at line 42 of file btConeTwistConstraint.cpp.
References btTransform, btTypedConstraint(), btVector3, CONETWIST_CONSTRAINT_TYPE, CONETWIST_USE_OBSOLETE_SOLVER, false, init(), m_angularOnly, m_rbAFrame, m_rbBFrame, and m_useSolveConstraintObsolete.
|
virtual |
we need it for both methods
Definition at line 246 of file btConeTwistConstraint.cpp.
References btJacobianEntry, btPlaneSpace1(), btVector3, buildJacobian(), calcAngleInfo2(), btRigidBody::getCenterOfMassPosition(), btRigidBody::getCenterOfMassTransform(), btRigidBody::getInvInertiaDiagLocal(), btRigidBody::getInvInertiaTensorWorld(), btRigidBody::getInvMass(), i, m_accMotorImpulse, m_accSwingLimitImpulse, m_accTwistLimitImpulse, m_angularOnly, m_appliedImpulse, m_rbA, m_rbAFrame, m_rbB, m_rbBFrame, m_useSolveConstraintObsolete, and SIMD_EPSILON.
Referenced by BT_DECLARE_ALIGNED_ALLOCATOR(), buildJacobian(), getInfo2(), and setFrames().
| void btConeTwistConstraint::calcAngleInfo | ( | ) |
Definition at line 515 of file btConeTwistConstraint.cpp.
References btAtan2Fast(), btFabs(), btVector3, btRigidBody::getCenterOfMassTransform(), getRigidBodyA(), getRigidBodyB(), m_rbAFrame, m_rbBFrame, m_solveSwingLimit, m_solveTwistLimit, m_swingAxis, m_swingCorrection, m_swingSpan1, m_swingSpan2, m_twistAngle, m_twistAxis, m_twistCorrection, m_twistLimitSign, m_twistSpan, quatRotate(), and shortestArcQuat().
| void btConeTwistConstraint::calcAngleInfo2 | ( | const btTransform & | transA, |
| const btTransform & | transB, | ||
| const btMatrix3x3 & | invInertiaWorldA, | ||
| const btMatrix3x3 & | invInertiaWorldB ) |
Definition at line 604 of file btConeTwistConstraint.cpp.
References adjustSwingAxisToUseEllipseNormal(), btAtan2(), btCos(), btFuzzyZero(), btMatrix3x3, btSin(), btTransform, btVector3, computeAngularImpulseDenominator(), computeConeLimitInfo(), computeTwistLimitInfo(), btQuaternion::getAngle(), btQuaternion::inverse(), m_bMotorEnabled, m_fixThresh, m_kSwing, m_kTwist, m_limitSoftness, m_qTarget, m_rbAFrame, m_rbBFrame, m_solveSwingLimit, m_solveTwistLimit, m_swingAxis, m_swingCorrection, m_swingLimitRatio, m_swingSpan1, m_swingSpan2, m_twistAngle, m_twistAxis, m_twistAxisA, m_twistCorrection, m_twistLimitRatio, m_twistLimitSign, m_twistSpan, m_useSolveConstraintObsolete, btQuaternion::normalize(), quatRotate(), shortestArcQuat(), SIMD_EPSILON, vTwist(), x, y, and z().
Referenced by buildJacobian(), and getInfo2NonVirtual().
|
virtual |
References calculateSerializeBufferSize().
|
protected |
Definition at line 807 of file btConeTwistConstraint.cpp.
References btAssert, btVector3, fabs(), btQuaternion::getAngle(), m_swingSpan1, m_swingSpan2, norm(), and SIMD_EPSILON.
Referenced by calcAngleInfo2(), init(), and setMotorTargetInConstraintSpace().
|
protected |
Definition at line 904 of file btConeTwistConstraint.cpp.
References btAssert, btVector3, btQuaternion::getAngle(), SIMD_EPSILON, and SIMD_PI.
Referenced by calcAngleInfo2(), init(), and setMotorTargetInConstraintSpace().
| void enableMotor | ( | bool | b | ) |
Definition at line 298 of file btConeTwistConstraint.h.
References b, enableMotor(), and m_bMotorEnabled.
Referenced by enableAngularMotor(), enableMotor(), enableMotor(), and setAxis().
| btTransform & getAFrame | ( | ) | const |
Definition at line 244 of file btConeTwistConstraint.h.
References btTransform, getAFrame(), and m_rbAFrame.
Referenced by getAFrame().
| bool getAngularOnly | ( | ) | const |
Definition at line 165 of file btConeTwistConstraint.h.
References getAngularOnly(), and m_angularOnly.
Referenced by getAngularOnly(), and getAngularOnly().
| btTransform & getBFrame | ( | ) | const |
Definition at line 245 of file btConeTwistConstraint.h.
References btTransform, getBFrame(), and m_rbBFrame.
Referenced by getBFrame().
|
inline |
Definition at line 281 of file btConeTwistConstraint.h.
References getBiasFactor(), and m_biasFactor.
Referenced by getBiasFactor().
| btScalar getDamping | ( | ) | const |
Definition at line 295 of file btConeTwistConstraint.h.
References getDamping(), and m_damping.
Referenced by getDamping(), and getDamping().
| btScalar getFixThresh | ( | ) |
Definition at line 313 of file btConeTwistConstraint.h.
References getFixThresh(), and m_fixThresh.
Referenced by getFixThresh().
| int getFlags | ( | ) | const |
Definition at line 347 of file btConeTwistConstraint.h.
References getFlags(), and m_flags.
Referenced by getFlags().
| btTransform & getFrameOffsetA | ( | ) | const |
Definition at line 334 of file btConeTwistConstraint.h.
References btTransform, getFrameOffsetA(), and m_rbAFrame.
Referenced by getFrameOffsetA(), and getFrameOffsetA().
| btTransform & getFrameOffsetB | ( | ) | const |
Definition at line 339 of file btConeTwistConstraint.h.
References btTransform, getFrameOffsetB(), and m_rbBFrame.
Referenced by getFrameOffsetB(), and getFrameOffsetB().
|
virtual |
References getInfo1(), and getInfo1NonVirtual().
Referenced by getInfo1(), and getInfo1().
| void btSliderConstraint::getInfo1NonVirtual | ( | btConstraintInfo1 * | info | ) |
Definition at line 97 of file btConeTwistConstraint.cpp.
References btConstraintInfo1::m_numConstraintRows, and btConstraintInfo1::nub.
Referenced by getInfo1(), and getInfo1NonVirtual().
|
virtual |
References btMatrix3x3, btSolverBody, btTransform, getInfo2(), getInfo2NonVirtual(), solveConstraintObsolete(), and updateRHS().
Referenced by getInfo2(), and getInfo2().
| void btConeTwistConstraint::getInfo2NonVirtual | ( | btConstraintInfo2 * | info, |
| const btTransform & | transA, | ||
| const btTransform & | transB, | ||
| const btMatrix3x3 & | invInertiaWorldA, | ||
| const btMatrix3x3 & | invInertiaWorldB ) |
Definition at line 109 of file btConeTwistConstraint.cpp.
References BT_CONETWIST_FLAGS_ANG_CFM, BT_CONETWIST_FLAGS_LIN_CFM, BT_CONETWIST_FLAGS_LIN_ERP, btAssert, btMatrix3x3, btTransform, btVector3, calcAngleInfo2(), btConstraintInfo2::cfm, btConstraintInfo2::erp, btConstraintInfo2::fps, m_angCFM, m_biasFactor, m_bMotorEnabled, btConstraintInfo2::m_constraintError, m_fixThresh, m_flags, btConstraintInfo2::m_J1angularAxis, btConstraintInfo2::m_J1linearAxis, btConstraintInfo2::m_J2angularAxis, btConstraintInfo2::m_J2linearAxis, m_linCFM, m_linERP, btConstraintInfo2::m_lowerLimit, m_maxMotorImpulse, m_rbAFrame, m_rbBFrame, m_relaxationFactor, m_solveSwingLimit, m_solveTwistLimit, m_swingAxis, m_swingCorrection, m_swingSpan1, m_swingSpan2, m_twistAxis, m_twistCorrection, m_twistSpan, btConstraintInfo2::m_upperLimit, m_useSolveConstraintObsolete, btConstraintInfo2::rowskip, and SIMD_INFINITY.
Referenced by getInfo2().
| btScalar getLimit | ( | int | limitIndex | ) | const |
Definition at line 195 of file btConeTwistConstraint.h.
References btAssert, getLimit(), m_swingSpan1, m_swingSpan2, and m_twistSpan.
Referenced by getLimit().
|
inline |
Definition at line 277 of file btConeTwistConstraint.h.
References getLimitSoftness(), and m_limitSoftness.
Referenced by getLimitSoftness().
| btScalar getMaxMotorImpulse | ( | ) | const |
Definition at line 300 of file btConeTwistConstraint.h.
References getMaxMotorImpulse(), and m_maxMotorImpulse.
Referenced by getMaxMotorImpulse(), and getMaxMotorImpulse().
| const btQuaternion & getMotorTarget | ( | ) | const |
Definition at line 321 of file btConeTwistConstraint.h.
References getMotorTarget(), and m_qTarget.
Referenced by getMotorTarget().
|
virtual |
return the local value of parameter
References getParam(), and num.
Referenced by getParam(), and getParam().
| btVector3 btConeTwistConstraint::GetPointForAngle | ( | btScalar | fAngleInRadians, |
| btScalar | fLength ) const |
Definition at line 871 of file btConeTwistConstraint.cpp.
References btCos(), btSin(), btVector3, fabs(), m_swingSpan1, m_swingSpan2, norm(), quatRotate(), and SIMD_EPSILON.
|
inline |
Definition at line 285 of file btConeTwistConstraint.h.
References getRelaxationFactor(), and m_relaxationFactor.
Referenced by getRelaxationFactor().
| btRigidBody & getRigidBodyA | ( | ) | const |
Definition at line 151 of file btConeTwistConstraint.h.
References getRigidBodyA(), and m_rbA.
Referenced by calcAngleInfo(), calculateTransforms(), getInfo2InternalUsingFrameOffset(), getRigidBodyA(), solveConstraintObsolete(), and solveSingleIteration().
| btRigidBody & getRigidBodyB | ( | ) | const |
Definition at line 155 of file btConeTwistConstraint.h.
References getRigidBodyB(), and m_rbB.
Referenced by calcAngleInfo(), calculateTransforms(), getInfo2InternalUsingFrameOffset(), getRigidBodyB(), solveConstraintObsolete(), and solveSingleIteration().
|
inline |
Definition at line 252 of file btConeTwistConstraint.h.
References getSolveSwingLimit(), and m_solveSwingLimit.
Referenced by getSolveSwingLimit().
|
inline |
Definition at line 247 of file btConeTwistConstraint.h.
References getSolveTwistLimit(), and m_solveTwistLimit.
Referenced by getSolveTwistLimit().
|
inline |
Definition at line 265 of file btConeTwistConstraint.h.
References getSwingSpan1(), and m_swingSpan1.
Referenced by getSwingSpan1().
|
inline |
Definition at line 269 of file btConeTwistConstraint.h.
References getSwingSpan2(), and m_swingSpan2.
Referenced by getSwingSpan2().
|
inline |
Definition at line 289 of file btConeTwistConstraint.h.
References getTwistAngle(), and m_twistAngle.
Referenced by getTwistAngle().
|
inline |
Definition at line 257 of file btConeTwistConstraint.h.
References getTwistLimitSign(), and m_twistLimitSign.
Referenced by getTwistLimitSign().
|
inline |
Definition at line 273 of file btConeTwistConstraint.h.
References getTwistSpan(), and m_twistSpan.
Referenced by getTwistSpan().
|
protected |
References adjustSwingAxisToUseEllipseNormal(), btVector3, computeConeLimitInfo(), computeTwistLimitInfo(), and init().
Referenced by blender::bke::add_custom_data_layer_from_attribute_init(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::gpu::MTLFrameBuffer::bake_render_pass_descriptor(), BKE_mesh_legacy_convert_uvs_to_generic(), BMO_op_init(), blender::array_utils::booleans_mix_calc(), bounds_min_max_with_transform(), btConeTwistConstraint(), btConeTwistConstraint(), btGeneric6DofSpringConstraint(), btGeneric6DofSpringConstraint(), btSymMatrix< T >::btSymMatrix(), Buffer_new(), blender::bke::build_mesh_positions(), blender::ed::vse::ScopeHistogram::calc_from_ibuf(), blender::bke::calculate_type_counts(), blender::ed::curves::contains(), blender::ed::pointcloud::contains(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::array_utils::count_booleans(), blender::gpu::MTLContext::debug_capture_begin(), deform_verts(), ED_area_type_hud_ensure(), ed_curves_select_pick(), ed_grease_pencil_select_pick(), blender::gpu::MTLContext::ensure_depth_stencil_state(), blender::ed::curves::find_closest_curve(), blender::ed::curves::find_closest_curve_to_screen_co(), blender::ed::curves::find_closest_point_to_screen_co(), blender::ed::pointcloud::find_closest_point_to_screen_co(), blender::ed::sculpt_paint::find_curves_brush_position(), blender::bke::pbvh::Tree::from_grids(), blender::bke::pbvh::Tree::from_mesh(), blender::bke::gather_attributes(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::gpu::MTLContextComputeUtils::get_buffer_clear_pso(), GHOST_ContextCGL::GHOST_ContextCGL(), ghost_fatal_error_dialog(), heapsimple_down(), init(), init(), init(), init(), init(), blender::gpu::MTLTexture::init_internal(), blender::ed::sculpt_paint::load_tex(), blender::ed::sculpt_paint::load_tex_cursor(), blender::bounds::min_max(), blender::bounds::min_max(), blender::bounds::min_max_with_radii(), blender::gpu::MTLFrameBuffer::MTLFrameBuffer(), pointcloud_select_pick(), pygpu_buffer__tp_new(), register_node_type_tex_bricks(), register_node_type_tex_image(), register_node_type_tex_output(), blender::gpu::MTLBackend::render_begin(), blender::gpu::MTLBackend::render_step(), blender::ed::sculpt_paint::replace_attribute(), btSymMatrix< T >::resize(), blender::gpu::MTLContext::sampler_state_cache_init(), blender::ed::transform::snap_object_data_editmesh_get(), blender::seq::tonemap_calc_input_luminance(), blender::bke::try_add_shared_field_attribute(), blender::ed::greasepencil::weight_sample_invoke(), WM_tooltip_immediate_init(), WM_tooltip_timer_init(), and WM_tooltip_timer_init_ex().
| bool isMaxMotorImpulseNormalized | ( | ) | const |
Definition at line 301 of file btConeTwistConstraint.h.
References isMaxMotorImpulseNormalized(), and m_bNormalizedMotorStrength.
Referenced by isMaxMotorImpulseNormalized().
| bool isMotorEnabled | ( | ) | const |
Definition at line 299 of file btConeTwistConstraint.h.
References isMotorEnabled(), and m_bMotorEnabled.
Referenced by isMotorEnabled().
| bool isPastSwingLimit | ( | ) |
Definition at line 293 of file btConeTwistConstraint.h.
References isPastSwingLimit(), and m_solveSwingLimit.
Referenced by isPastSwingLimit().
|
virtual |
fills the dataBuffer and returns the struct name (and 0 on failure)
References serialize().
| void setAngularOnly | ( | bool | angularOnly | ) |
Definition at line 160 of file btConeTwistConstraint.h.
References m_angularOnly, and setAngularOnly().
Referenced by setAngularOnly().
| void setDamping | ( | btScalar | damping | ) |
Definition at line 296 of file btConeTwistConstraint.h.
References m_damping, and setDamping().
Referenced by btHinge2Constraint(), setDamping(), setDamping(), and setDamping().
| void setFixThresh | ( | btScalar | fixThresh | ) |
Definition at line 314 of file btConeTwistConstraint.h.
References m_fixThresh, and setFixThresh().
Referenced by setFixThresh().
|
virtual |
Definition at line 1110 of file btConeTwistConstraint.cpp.
References btTransform, buildJacobian(), m_rbAFrame, and m_rbBFrame.
Referenced by setFrames(), setParam(), and updateRHS().
| void setLimit | ( | btScalar | _swingSpan1, |
| btScalar | _swingSpan2, | ||
| btScalar | _twistSpan, | ||
| btScalar | _softness = 1.f, | ||
| btScalar | _biasFactor = 0.3f, | ||
| btScalar | _relaxationFactor = 1.0f ) |
Definition at line 233 of file btConeTwistConstraint.h.
References m_biasFactor, m_limitSoftness, m_relaxationFactor, m_swingSpan1, m_swingSpan2, m_twistSpan, and setLimit().
| void setLimit | ( | int | limitIndex, |
| btScalar | limitValue ) |
Definition at line 170 of file btConeTwistConstraint.h.
References m_swingSpan1, m_swingSpan2, m_twistSpan, and setLimit().
Referenced by setLimit(), setLimit(), setLimit(), and setLimit().
| void setMaxMotorImpulse | ( | btScalar | maxMotorImpulse | ) |
Definition at line 302 of file btConeTwistConstraint.h.
References m_bNormalizedMotorStrength, m_maxMotorImpulse, and setMaxMotorImpulse().
Referenced by setMaxMotorImpulse().
| void setMaxMotorImpulseNormalized | ( | btScalar | maxMotorImpulse | ) |
Definition at line 307 of file btConeTwistConstraint.h.
References m_bNormalizedMotorStrength, m_maxMotorImpulse, and setMaxMotorImpulseNormalized().
Referenced by setMaxMotorImpulseNormalized().
| void btConeTwistConstraint::setMotorTarget | ( | const btQuaternion & | q | ) |
Definition at line 961 of file btConeTwistConstraint.cpp.
References m_rbAFrame, m_rbBFrame, and setMotorTargetInConstraintSpace().
Referenced by setMotorTarget().
| void btConeTwistConstraint::setMotorTargetInConstraintSpace | ( | const btQuaternion & | q | ) |
Definition at line 974 of file btConeTwistConstraint.cpp.
References btQuaternion::btQuaternion(), btVector3, computeConeLimitInfo(), computeTwistLimitInfo(), fabs(), btQuaternion::inverse(), m_qTarget, m_swingSpan1, m_swingSpan2, m_twistSpan, btQuaternion::normalize(), quatRotate(), shortestArcQuat(), SIMD_EPSILON, and vTwist().
Referenced by setMotorTarget().
|
virtual |
override the default global value of a parameter (such as ERP or CFM), optionally provide the axis (0..5). If no axis is provided, it uses the default axis for this constraint.
References btTransform, num, setFrames(), and setParam().
Referenced by setParam(), and setParam().
|
virtual |
internal method used by the constraint solver, don't use them directly
solve angular part
Definition at line 292 of file btConeTwistConstraint.cpp.
References btAssert, btMax(), btSolverBody, btTransform, btVector3, btTransformUtil::calculateVelocity(), btRigidBody::computeAngularImpulseDenominator(), dot(), btRigidBody::getCenterOfMassPosition(), btRigidBody::getCenterOfMassTransform(), btRigidBody::getInvInertiaTensorWorld(), btRigidBody::getInvMass(), getRigidBodyA(), getRigidBodyB(), i, btTransformUtil::integrateTransform(), m_accMotorImpulse, m_accSwingLimitImpulse, m_accTwistLimitImpulse, m_angularOnly, m_appliedImpulse, m_biasFactor, m_bMotorEnabled, m_bNormalizedMotorStrength, m_damping, m_kSwing, m_kTwist, m_maxMotorImpulse, m_qTarget, m_rbA, m_rbAFrame, m_rbB, m_rbBFrame, m_relaxationFactor, m_solveSwingLimit, m_solveTwistLimit, m_swingAxis, m_swingCorrection, m_swingLimitRatio, m_twistAxis, m_twistAxisA, m_twistCorrection, m_twistLimitRatio, m_useSolveConstraintObsolete, SIMD_EPSILON, and solveConstraintObsolete().
Referenced by getInfo2(), and solveConstraintObsolete().
| void btPoint2PointConstraint::updateRHS | ( | btScalar | timeStep | ) |
Definition at line 509 of file btConeTwistConstraint.cpp.
Referenced by getInfo2(), and updateRHS().
| btConeTwistConstraint __pad0__ |
btConeTwistConstraint can be used to simulate ragdoll joints (upper arm, leg etc)
Definition at line 58 of file btConeTwistConstraint.h.
| btVector3 m_accMotorImpulse |
Definition at line 111 of file btConeTwistConstraint.h.
Referenced by buildJacobian(), and solveConstraintObsolete().
| btScalar m_accSwingLimitImpulse |
Definition at line 92 of file btConeTwistConstraint.h.
Referenced by buildJacobian(), and solveConstraintObsolete().
| btScalar m_accTwistLimitImpulse |
Definition at line 93 of file btConeTwistConstraint.h.
Referenced by buildJacobian(), and solveConstraintObsolete().
| btScalar m_angCFM |
Definition at line 117 of file btConeTwistConstraint.h.
Referenced by getInfo2NonVirtual().
| bool m_angularOnly |
Definition at line 95 of file btConeTwistConstraint.h.
Referenced by btConeTwistConstraint(), btConeTwistConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), buildJacobian(), getAngularOnly(), getAngularOnly(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), setAngularOnly(), and solveConstraintObsolete().
| btScalar m_biasFactor |
Definition at line 69 of file btConeTwistConstraint.h.
Referenced by btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), getBiasFactor(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), getInfo2NonVirtual(), getLimitBiasFactor(), setLimit(), setLimit(), and solveConstraintObsolete().
| bool m_bMotorEnabled |
Definition at line 107 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), enableMotor(), getInfo2NonVirtual(), isMotorEnabled(), and solveConstraintObsolete().
| bool m_bNormalizedMotorStrength |
Definition at line 108 of file btConeTwistConstraint.h.
Referenced by isMaxMotorImpulseNormalized(), setMaxMotorImpulse(), setMaxMotorImpulseNormalized(), and solveConstraintObsolete().
| btScalar m_damping |
Definition at line 72 of file btConeTwistConstraint.h.
Referenced by getDamping(), setDamping(), and solveConstraintObsolete().
| btScalar m_fixThresh |
Definition at line 78 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), getFixThresh(), getInfo2NonVirtual(), and setFixThresh().
| int m_flags |
Definition at line 114 of file btConeTwistConstraint.h.
Referenced by btGeneric6DofConstraint(), btGeneric6DofConstraint(), btGeneric6DofSpring2Constraint(), btGeneric6DofSpring2Constraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btPoint2PointConstraint(), btPoint2PointConstraint(), get_limit_motor_info2(), getFlags(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), getInfo2NonVirtual(), getInfo2NonVirtual(), getInfo2NonVirtual(), initParams(), btCollisionWorld::rayTestSingleInternal(), setAngularLimits(), and setLinearLimits().
| btScalar m_kSwing |
Definition at line 83 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), and solveConstraintObsolete().
| btScalar m_kTwist |
Definition at line 84 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), and solveConstraintObsolete().
| btScalar m_limitSoftness |
Definition at line 68 of file btConeTwistConstraint.h.
Referenced by btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), calcAngleInfo2(), getLimitSoftness(), setLimit(), and setLimit().
| btScalar m_linCFM |
Definition at line 115 of file btConeTwistConstraint.h.
Referenced by getInfo2NonVirtual().
| btScalar m_linERP |
Definition at line 116 of file btConeTwistConstraint.h.
Referenced by getInfo2NonVirtual().
| btScalar m_maxMotorImpulse |
Definition at line 110 of file btConeTwistConstraint.h.
Referenced by enableAngularMotor(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), getInfo2NonVirtual(), getMaxMotorImpulse(), getMaxMotorImpulse(), setMaxMotorImpulse(), setMaxMotorImpulseNormalized(), and solveConstraintObsolete().
| btQuaternion m_qTarget |
Definition at line 109 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), getMotorTarget(), setMotorTargetInConstraintSpace(), and solveConstraintObsolete().
| btTransform m_rbAFrame |
Definition at line 65 of file btConeTwistConstraint.h.
Referenced by btConeTwistConstraint(), btConeTwistConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), buildJacobian(), calcAngleInfo(), calcAngleInfo2(), getAFrame(), getFrameOffsetA(), getFrameOffsetA(), getHingeAngle(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), getInfo2NonVirtual(), setAxis(), setFrames(), setMotorTarget(), setMotorTarget(), and solveConstraintObsolete().
| btTransform m_rbBFrame |
Definition at line 66 of file btConeTwistConstraint.h.
Referenced by btConeTwistConstraint(), btConeTwistConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), buildJacobian(), calcAngleInfo(), calcAngleInfo2(), getBFrame(), getFrameOffsetB(), getFrameOffsetB(), getHingeAngle(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), getInfo2NonVirtual(), setAxis(), setFrames(), setMotorTarget(), setMotorTarget(), and solveConstraintObsolete().
| btScalar m_relaxationFactor |
Definition at line 70 of file btConeTwistConstraint.h.
Referenced by btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), getInfo2NonVirtual(), getLimitRelaxationFactor(), getRelaxationFactor(), setLimit(), setLimit(), and solveConstraintObsolete().
| bool m_solveSwingLimit |
Definition at line 97 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), getInfo2NonVirtual(), getSolveSwingLimit(), isPastSwingLimit(), and solveConstraintObsolete().
| bool m_solveTwistLimit |
Definition at line 96 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), getInfo2NonVirtual(), getSolveTwistLimit(), and solveConstraintObsolete().
| btVector3 m_swingAxis |
Definition at line 80 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), getInfo2NonVirtual(), and solveConstraintObsolete().
| btScalar m_swingCorrection |
Definition at line 87 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), getInfo2NonVirtual(), and solveConstraintObsolete().
| btScalar m_swingLimitRatio |
Definition at line 102 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), and solveConstraintObsolete().
| btScalar m_swingSpan1 |
Definition at line 74 of file btConeTwistConstraint.h.
Referenced by adjustSwingAxisToUseEllipseNormal(), calcAngleInfo(), calcAngleInfo2(), computeConeLimitInfo(), getInfo2NonVirtual(), getLimit(), GetPointForAngle(), getSwingSpan1(), setLimit(), setLimit(), and setMotorTargetInConstraintSpace().
| btScalar m_swingSpan2 |
Definition at line 75 of file btConeTwistConstraint.h.
Referenced by adjustSwingAxisToUseEllipseNormal(), calcAngleInfo(), calcAngleInfo2(), computeConeLimitInfo(), getInfo2NonVirtual(), getLimit(), GetPointForAngle(), getSwingSpan2(), setLimit(), setLimit(), and setMotorTargetInConstraintSpace().
| btScalar m_twistAngle |
Definition at line 90 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), and getTwistAngle().
| btVector3 m_twistAxis |
Definition at line 81 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), getInfo2NonVirtual(), and solveConstraintObsolete().
| btVector3 m_twistAxisA |
Definition at line 104 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), and solveConstraintObsolete().
| btScalar m_twistCorrection |
Definition at line 88 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), getInfo2NonVirtual(), and solveConstraintObsolete().
| btScalar m_twistLimitRatio |
Definition at line 103 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo2(), and solveConstraintObsolete().
| btScalar m_twistLimitSign |
Definition at line 86 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), and getTwistLimitSign().
| btScalar m_twistSpan |
Definition at line 76 of file btConeTwistConstraint.h.
Referenced by calcAngleInfo(), calcAngleInfo2(), getInfo2NonVirtual(), getLimit(), getTwistSpan(), setLimit(), setLimit(), and setMotorTargetInConstraintSpace().
| bool m_useSolveConstraintObsolete |
Definition at line 99 of file btConeTwistConstraint.h.
Referenced by btConeTwistConstraint(), btConeTwistConstraint(), btGeneric6DofConstraint(), btGeneric6DofConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btHingeConstraint(), btPoint2PointConstraint(), btPoint2PointConstraint(), btSliderConstraint(), btSliderConstraint(), buildJacobian(), calcAngleInfo2(), getInfo2Internal(), getInfo2InternalUsingFrameOffset(), getInfo2NonVirtual(), getInfo2NonVirtual(), getInfo2NonVirtual(), getInfo2NonVirtual(), and solveConstraintObsolete().