![]() |
Kiwano Engine
v1.2.x
|
物理接触 更多...
#include <Contact.h>
Public 成员函数 | |
bool | IsTouching () const |
是否是接触 | |
void | SetEnabled (bool flag) |
启用或禁用 (仅作用于一个时间步) | |
bool | IsEnabled () const |
是否启用 | |
Fixture * | GetFixtureA () const |
获取物体A的夹具 | |
Fixture * | GetFixtureB () const |
获取物体B的夹具 | |
PhysicBody * | GetBodyA () const |
获取物体A | |
PhysicBody * | GetBodyB () const |
获取物体B | |
void | SetFriction (float friction) |
设置摩擦力 | |
float | GetFriction () const |
获取摩擦力 | |
void | ResetFriction () |
重置摩擦力 | |
void | SetRestitution (float restitution) |
设置弹性恢复 | |
float | GetRestitution () const |
获取弹性恢复 | |
void | ResetRestitution () |
重置弹性恢复 | |
void | SetTangentSpeed (float speed) |
设置切线速度 | |
float | GetTangentSpeed () const |
获取切线速度 | |
b2Contact * | GetB2Contact () const |
获取b2Contact | |
void | SetB2Contact (b2Contact *contact) |
设置b2Contact | |
bool | operator== (const Contact &rhs) const |
bool | operator!= (const Contact &rhs) const |
物理接触