⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mass_relative_vector3.h

📁 hl2 source code. Do not use it illegal.
💻 H
字号:
#ifndef HK_PHYSICS_MASS_RELATIVE_VECTOR3
#define HK_PHYSICS_MASS_RELATIVE_VECTOR3

// IVP_EXPORT_PUBLIC

class hk_Mass_Relative_Vector3 
{
	public:

	HK_DECLARE_NONVIRTUAL_CLASS_ALLOCATOR(HK_MEMORY_CLASS_CONSTRAINT, hk_Mass_Relative_Vector3)

	hk_Vector3 m_vector;
	inline hk_Mass_Relative_Vector3(){;}
	inline hk_Mass_Relative_Vector3( hk_Rigid_Body *rb, const hk_Vector3 &position_ws )
	{
		m_vector.set_sub( position_ws, rb->get_center_of_mass() );
	}

	inline void set( hk_Rigid_Body* rb, const hk_Vector3& position_ws )
	{
		m_vector.set_sub( position_ws, rb->get_center_of_mass() );
	}
};

#endif /*HK_PHYSICS_MASS_RELATIVE_VECTOR3*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -