📄 constraint.cpp
字号:
#include <hk_physics/physics.h>
#include <hk_physics/simunit/psi_info.h>
#include <hk_physics/constraint/constraint.h>
#include <hk_physics/constraint/local_constraint_system/local_constraint_system.h>
// IVP_EXPORT_PUBLIC
hk_Constraint::hk_Constraint(hk_Local_Constraint_System *sys, hk_Rigid_Body *a, hk_Rigid_Body *b, hk_effector_priority redundend_prio, int storage_size)
: hk_Rigid_Body_Binary_EF( HK_NULL, a, b, HK_PRIORITY_NONE), // do not link yet
m_constraint_system (sys)
{
m_constraint_system->add_constraint(this, storage_size);
}
hk_Constraint::~hk_Constraint()
{
if (m_constraint_system)
{
m_constraint_system->constraint_deletion_event(this);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -