载入中...
搜索中...
未找到
eve::IPhysicsQuery类 参考abstract
2D physics world query surface (provided by the physics module). 更多...
#include <PhysicsQuery.h>
Public 成员函数 | |
| virtual | ~IPhysicsQuery ()=default |
| I physics query. | |
| virtual int | newWorld (float gravityX, float gravityY)=0 |
| Create a world with the given gravity; returns a non-negative id. | |
| virtual int | worldCount ()=0 |
| Number of worlds still alive. | |
| virtual bool | worldGravity (int id, float *gravityX, float *gravityY)=0 |
| Gravity of a world; false when the id is unknown. | |
| virtual bool | rayCast (int id, float x1, float y1, float x2, float y2, RayHitInfo *out)=0 |
| Segment ray-cast; fills the hit info. | |
| virtual bool | removeWorld (int id)=0 |
| Destroy a world. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "IPhysicsQuery" |
详细描述
2D physics world query surface (provided by the physics module).
在文件 PhysicsQuery.h 第 19 行定义.
构造及析构函数说明
◆ ~IPhysicsQuery()
|
virtualdefault |
I physics query.
成员函数说明
◆ newWorld()
|
pure virtual |
Create a world with the given gravity; returns a non-negative id.
◆ rayCast()
|
pure virtual |
Segment ray-cast; fills the hit info.
◆ removeWorld()
|
pure virtual |
Destroy a world.
◆ worldCount()
|
pure virtual |
Number of worlds still alive.
◆ worldGravity()
|
pure virtual |
Gravity of a world; false when the id is unknown.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 PhysicsQuery.h 第 21 行定义.
该类的文档由以下文件生成:
- src/engine/common/PhysicsQuery.h