Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
PhysicsContactPreSolve Class Reference

Presolve value generated when onContactPreSolve called. More...

Public Member Functions

float getRestitution () const
 Get restitution between two bodies. More...
 
var getRestitution ()
 Get restitution between two bodies. More...
 
local getRestitution ()
 Get restitution between two bodies. More...
 
float getFriction () const
 Get friction between two bodies. More...
 
local getFriction ()
 Get friction between two bodies. More...
 
Vec2 getSurfaceVelocity () const
 Get surface velocity between two bodies. More...
 
local getSurfaceVelocity ()
 Get surface velocity between two bodies. More...
 
void setRestitution (float restitution)
 Set the restitution. More...
 
local setRestitution ( local restitution)
 Set the restitution. More...
 
void setFriction (float friction)
 Set the friction. More...
 
local setFriction ( local friction)
 Set the friction. More...
 
void setSurfaceVelocity (const Vec2 &velocity)
 Set the surface velocity. More...
 
var setSurfaceVelocity ( var velocity)
 Set the surface velocity. More...
 
local setSurfaceVelocity ( local velocity)
 Set the surface velocity. More...
 
void ignore ()
 Ignore the rest of the contact presolve and postsolve callbacks. More...
 

Detailed Description

Presolve value generated when onContactPreSolve called.

Member Function Documentation

float getRestitution ( ) const

Get restitution between two bodies.

var getRestitution ( )

Get restitution between two bodies.

local getRestitution ( )

Get restitution between two bodies.

float getFriction ( ) const

Get friction between two bodies.

var getFriction ( )

Get friction between two bodies.

local getFriction ( )

Get friction between two bodies.

Vec2 getSurfaceVelocity ( ) const

Get surface velocity between two bodies.

var getSurfaceVelocity ( )

Get surface velocity between two bodies.

local getSurfaceVelocity ( )

Get surface velocity between two bodies.

void setRestitution ( float  restitution)

Set the restitution.

var setRestitution ( var  restitution)

Set the restitution.

local setRestitution ( local  restitution)

Set the restitution.

void setFriction ( float  friction)

Set the friction.

var setFriction ( var  friction)

Set the friction.

local setFriction ( local  friction)

Set the friction.

void setSurfaceVelocity ( const Vec2 velocity)

Set the surface velocity.

var setSurfaceVelocity ( var  velocity)

Set the surface velocity.

local setSurfaceVelocity ( local  velocity)

Set the surface velocity.

void ignore ( )

Ignore the rest of the contact presolve and postsolve callbacks.

var ignore ( )

Ignore the rest of the contact presolve and postsolve callbacks.

local ignore ( )

Ignore the rest of the contact presolve and postsolve callbacks.


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