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

📄 hinge_bp_builder.h

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

#ifndef HK_PHYSICS_HINGE_BP_H
#	include <hk_physics/constraint/hinge/hinge_bp.h>
#endif

// IVP_EXPORT_PUBLIC

class hk_Hinge_BP_Builder {
protected:
	hk_Hinge_BP m_hinge_bp;
public:
	void set_position_os( int body_index, const hk_Vector3 &position );
	void set_axis_ws( hk_Rigid_Body *a, hk_Rigid_Body *b, const hk_Vector3& axis_ws );
	void set_tau( hk_real );
	void set_joint_friction(hk_real Nm);
		// sets a joint friction === set_angular_motor( 0.0f, Nm )

	void set_angular_motor(hk_real angular_velocity, hk_real max_torque);
		// sets the joint friction attached to an angular motor

	void set_angular_limits( hk_real lower, hk_real upper );
	const hk_Hinge_BP *get_blueprint(){ return &m_hinge_bp; };
};

#endif /*HK_PHYSICS_HINGE_BP_BUILDER_H*/

⌨️ 快捷键说明

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