Пример #1
0
void CVXS_Bond::UpdateBond() //calculates force, positive for tension, negative for compression
{
	switch (ThisBondType){
	case B_LINEAR: CalcLinForce(); break;
	case B_LINEAR_CONTACT: CalcContactForce(); break;
	case B_INPUT_LINEAR_NOROT: if (p_Sim->Dragging) CalcSimpleSpringForce(); else {Force1 = Vec3D<>(0,0,0); Force2 = Vec3D<>(0,0,0); Moment1 = Vec3D<>(0,0,0); Moment2 = Vec3D<>(0,0,0);} break;
	default: {}
	}
}
void CVXS_BondInternal::UpdateBond() //calculates force, positive for tension, negative for compression
{
    CalcLinForce();
}