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

📄 ivp_radar.hxx

📁 hl2 source code. Do not use it illegal.
💻 HXX
字号:
// Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.


/********************************************************************************
 *	Name:	       	IVP_Radar_Hit	
 *	Description:	Information about a hit
 *	Attention:	positions are only an estimate
 ********************************************************************************/
class IVP_Radar_Hit {
public:
    IVP_Object *this_object;
    IVP_Object *other_object;
    IVP_DOUBLE dist;
};

/********************************************************************************
 *	Name:	      	IVP_Radar	
 *	Description:	base class, needed for IVP_Environment::do_radar_checking(...)
 *	Note:		a callback class, which has to be subclassed by the user
 *			max_range and max_relative_error have to be set by the user
 *			before calling IVP_Environment::do_radar_checking
 *	Attention:	Only objects returned, which will also cause a collision
 *			with the start object
 ********************************************************************************/
class IVP_Radar {
public:
    //////////// minimal settings for radar checking
    IVP_DOUBLE max_range;		// max distance to check
    IVP_DOUBLE max_relative_error;	// maximum relative distance error for checking
    
    virtual void radar_hit( IVP_Radar_Hit *)=0;
};

⌨️ 快捷键说明

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