载入中...
搜索中...
未找到
PhysicsQuery.h
浏览该文件的文档.
2D physics world query surface (provided by the physics module).
Definition PhysicsQuery.h:19
virtual int newWorld(float gravityX, float gravityY)=0
Create a world with the given gravity; returns a non-negative id.
virtual ~IPhysicsQuery()=default
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.
Definition Build.cpp:11