cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhysicsContactPreSolve Class Reference

#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

Member Function Documentation

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

Friends And Related Function Documentation

friend class
EventListenerPhysicsContact
friend

The documentation for this class was generated from the following file: