#include <CCPhysicsContact.h>
Public Member Functions | |
| float | getRestitution () const |
| get restitution between two bodies More... | |
| float | getFriction () const |
| get friction between two bodies More... | |
| Vec2 | getSurfaceVelocity () const |
| get surface velocity between two bodies More... | |
| void | setRestitution (float restitution) |
| set the restitution More... | |
| void | setFriction (float friction) |
| set the friction More... | |
| void | setSurfaceVelocity (const Vect &velocity) |
| set the surface velocity More... | |
| void | ignore () |
| ignore the rest of the contact presolve and postsolve callbacks More... | |
Friends | |
| class | EventListenerPhysicsContact |
| float getFriction | ( | ) | const |
get friction between two bodies
| float getRestitution | ( | ) | const |
get restitution between two bodies
| Vec2 getSurfaceVelocity | ( | ) | const |
get surface velocity between two bodies
| void ignore | ( | ) |
ignore the rest of the contact presolve and postsolve callbacks
| void setFriction | ( | float | friction | ) |
set the friction
| void setRestitution | ( | float | restitution | ) |
set the restitution
| void setSurfaceVelocity | ( | const Vect & | velocity | ) |
set the surface velocity
|
friend |