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

#include <CCPhysicsContact.h>

Public Member Functions

float getElasticity () const
 get elasticity between two bodies More...
 
float getFriction () const
 get friction between two bodies More...
 
Point getSurfaceVelocity () const
 get surface velocity between two bodies More...
 
void setElasticity (float elasticity)
 set the elasticity 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 getElasticity ( ) const

get elasticity between two bodies

float getFriction ( ) const

get friction between two bodies

Point getSurfaceVelocity ( ) const

get surface velocity between two bodies

void ignore ( )

ignore the rest of the contact presolve and postsolve callbacks

void setElasticity ( float  elasticity)

set the elasticity

void setFriction ( float  friction)

set the friction

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: