2D physics world query surface (provided by the physics module).
更多...
#include <PhysicsQuery.h>
|
| virtual | ~IPhysicsQuery ()=default |
| |
| 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.
|
| |
2D physics world query surface (provided by the physics module).
在文件 PhysicsQuery.h 第 19 行定义.
◆ ~IPhysicsQuery()
| virtual eve::IPhysicsQuery::~IPhysicsQuery |
( |
| ) |
|
|
virtualdefault |
◆ newWorld()
| virtual int eve::IPhysicsQuery::newWorld |
( |
float |
gravityX, |
|
|
float |
gravityY |
|
) |
| |
|
pure virtual |
Create a world with the given gravity; returns a non-negative id.
◆ rayCast()
| virtual bool eve::IPhysicsQuery::rayCast |
( |
int |
id, |
|
|
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2, |
|
|
RayHitInfo * |
out |
|
) |
| |
|
pure virtual |
Segment ray-cast; fills the hit info.
◆ removeWorld()
| virtual bool eve::IPhysicsQuery::removeWorld |
( |
int |
id | ) |
|
|
pure virtual |
◆ worldCount()
| virtual int eve::IPhysicsQuery::worldCount |
( |
| ) |
|
|
pure virtual |
Number of worlds still alive.
◆ worldGravity()
| virtual bool eve::IPhysicsQuery::worldGravity |
( |
int |
id, |
|
|
float * |
gravityX, |
|
|
float * |
gravityY |
|
) |
| |
|
pure virtual |
Gravity of a world; false when the id is unknown.
◆ capabilityName
| constexpr const char* eve::IPhysicsQuery::capabilityName = "IPhysicsQuery" |
|
staticconstexpr |
该类的文档由以下文件生成: