CMGDK r49-rc2
公有成员 | 公有属性
hgl::affect::Thrust2D类参考

2D推力影响器 更多...

#include <Thrust.H>

继承图,类hgl::affect::Thrust2D
hgl::AffectorObject hgl::EnumObject hgl::Object hgl::_Object

所有成员的列表。

公有成员

 Thrust2D (Timer *, const Vertex2f &v=Vertex2f(0, 0), double ss=1.0f, double ds=0.1f)
 本类构造函数
virtual ~Thrust2D ()
virtual const wchar_t * GetClassName ()
 取得类名
void Update ()
 刷新

公有属性

Property< double > Power
 力量
Property< double > DecPower
 力量衰减幅度(每秒)
Property< Vertex2fDirection
 推力方向
Property< Vertex2fDirectionPower
 方向推力(结果,只读)

详细描述

2D推力影响器

2D推力影响器
一种提供给2D游戏用的推力模拟影响器,注意它并不符合物理学。


构造及析构函数文档

hgl::affect::Thrust2D::Thrust2D ( Timer t,
const Vertex2f v = Vertex2f(0,0),
double  ss = 1.0f,
double  ds = 0.1f 
)

本类构造函数

2D推力影响器构造函数

参数:
t时间记录器
v推力方向
ss起始力量
ds每秒力量衰减幅度
virtual hgl::affect::Thrust2D::~Thrust2D ( ) [inline, virtual]

成员函数文档

virtual const wchar_t* hgl::affect::Thrust2D::GetClassName ( ) [inline, virtual]

取得类名

重载hgl::AffectorObject

void hgl::affect::Thrust2D::Update ( ) [virtual]

刷新

重载hgl::AffectorObject


成员数据文档

力量衰减幅度(每秒)

推力方向

方向推力(结果,只读)

力量


该类的文档由以下文件生成:
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义