mass_relative_vector3.h

来自「hl2 source code. Do not use it illegal.」· C头文件 代码 · 共 27 行

H
27
字号
#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 + =
减小字号Ctrl + -
显示快捷键?