hinge_bp_builder.h

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

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